powered by
Compute power of the t-test for non-zero correlation
power.tcorr(n, alpha, rho)
Vector of power estimates for two-sided tests
sample size (scalar)
p-value threshold (scalar)
population correlation coefficient (vector)
For many applications, the null.effect is rho = 0
rho = rep(c(0.3,0),c(100,900)); res = power.tcorr(n = 50, alpha = 0.05, rho = rho)
Run the code above in your browser using DataLab