View source: R/average_power.R
average.power.tcorr | R Documentation |
Compute average power of many t-tests for non-zero correlation
average.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
Average power estimate for multiple testing procedure
power.tcorr
for more details about power calculation of t-test for non-zero correlation
rho = rep(c(0.3,0),c(100,900));
average.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.