corr2p {vulcan} | R Documentation |
This functions converts an R value from a correlation calculation into a p-value, using a T distribution with the provided number of samples N minus 2 degrees of freedom
corr2p(r, N)
r |
a correlation coefficient |
N |
a number of samples |
p a p-value
set.seed(1) a<-rnorm(1000) b<-a+rnorm(1000,sd=10) r<-cor(a,b,method='pearson') corr2p(r,N=length(a))