Hello,
I used the function cor to calculate the pearson correlation coefficient
between variables. However, the resulting values do not correspond to the
outcome of my excel-calculations, for which I used the formula
Cor(x,y)=Cov(x,y)/(SD(x)*SD(y))
So my question is: How does the function "cor" compute the pearson correlation
coefficient?
Thank you in advance,
Ake Nauta
_________________________________________________________________
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.