Skip to content
Prev 131391 / 398502 Next

correlation coefficient from qq plot

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: