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:
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. Thanks, Tom [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.