Description Usage Arguments Value Examples
View source: R/fdr-sampsize-v1.0e.R
Estimate power of the one-sample t-test;Uses classical power formula for one-sample t-test
| 1 | power.onesampt (n, alpha, delta, sigma = 1) 
 | 
| n | number of events (scalar) | 
| alpha | p-value threshold (scalar) | 
| delta | difference of actual mean from null mean (vector) | 
| sigma | standard deviation (vector or scalar, default=1) | 
vector of power estimates for two-sided test
| 1 2 3 4 5 6 7 8 |  power.onesampt        # show the power function
 res=fdr.sampsize(fdr=0.1,
                  ave.pow=0.8,
                  pow.func=power.onesampt,
                  eff.size=rep(c(2,0),c(100,900)),
                  null.effect=0,
                  sigma=1)
 res
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.