power.tcorr | R Documentation |
Compute power of the t-test for non-zero correlation
power.tcorr(n, alpha, rho)
n |
sample size (scalar) |
alpha |
p-value threshold (scalar) |
rho |
population correlation coefficient (vector) |
For many applications, the null.effect is rho = 0
Vector of power estimates for two-sided tests
rho = rep(c(0.3,0),c(100,900));
res = power.tcorr(n = 50, alpha = 0.05, rho = rho)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.