Re: [R] Significance of correlation

2012-07-31 Thread Rolf Turner
On 31/07/12 21:13, Chintanu wrote: Hi, I understand that to test the significance of correlation between two PAIRED variables, the function, cor.test () can be used. However, in my case, I have tested the correlation (i.e., Correlation Coefficient, r) between two independent (i.e, different) var

Re: [R] Significance of correlation

2012-07-31 Thread S Ellison
If you have pearson correlation coefficients r calculated from n data points elsewhere, you can use a t test on t.r <- r * sqrt( (n-2)/(1-r^2) ) You'll need to use pt() to get your p value from t.r, though. S Ellison I understand that to test the sign

[R] Significance of correlation

2012-07-31 Thread Chintanu
Hi, I understand that to test the significance of correlation between two PAIRED variables, the function, cor.test () can be used. However, in my case, I have tested the correlation (i.e., Correlation Coefficient, r) between two independent (i.e, different) variables, and now I wish to test for th