Re: [R] Critical values of r

2008-01-13 Thread C.H.
Not particularly R related, but r related. For pearson correlation, the test statistics is based on t distribution. ts = r * sqrt ((n-2)/(1-r^2)) with n-2 degree of freedom. I think you can solve this question, maybe a little bit of googling. On Jan 14, 2008 1:39 PM, Sanglamt <[EMAIL PROTECTE

[R] Critical values of r

2008-01-13 Thread Sanglamt
I've spent several hours trying to track the answer down myself and failed miserably so a simple question for everyone that will no doubt have a painfully obvious answer. What's the command to calculate the critical value of r using a two tailed test with a given alpha and degrees of freedom? I.e