Description Usage Arguments Details Value Examples
View source: R/fdr-sampsize-v1.0e.R
Estimate power of t-test for non-zero correlation;Uses classical power formula for t-test
1 | 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
1 2 3 4 5 6 7 | power.tcorr # show the power function
res=fdr.sampsize(fdr=0.1,
ave.pow=0.8,
pow.func=power.tcorr,
eff.size=rep(c(0.3,0),c(100,900)),
null.effect=0)
res
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.