Re: [R] correlation coefficient from qq plot

2007-12-06 Thread Domenico Vistocco
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

[R] correlation coefficient from qq plot

2007-12-05 Thread Tom Fitzhugh
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.