You could use the qqnorm function to obtain the correlation, as:
> qqp=qqnorm(rstudent(regrname))
> cor(qqp$x,qqp$y)
If you do not want see the plot (as the qq.plot is richer):
> qqp=qqnorm(rstudent(regrname), plot.it=F)
domenico vistocco
Tom Fitzhugh wrote:
> Hi,
>
> I am trying to figure
Hi,
I am trying to figure out how to get the correlation coefficient for a
QQ plot (residual plot). So to be more precise, I am creating the plot
like this:
qq.plot(rstudent(regrname), main = rformula, col=1)
But want to also access (or compute) the correlation coefficient for
that plot.
2 matches
Mail list logo