powered by
Compute average power of many t-tests for non-zero correlation
average.power.tcorr(n, alpha, rho)
Average power estimate for multiple testing procedure
sample size (scalar)
p-value threshold (scalar)
population correlation coefficient (vector)
For many applications, the null.effect is rho = 0
power.tcorr for more details about power calculation of t-test for non-zero correlation
power.tcorr
rho = rep(c(0.3,0),c(100,900)); average.power.tcorr(n = 50, alpha = 0.05, rho = rho)
Run the code above in your browser using DataLab