Description Usage Arguments Value Examples
Simulates nsims normal samples with expectations differing from a value specified by the null hypothesis by d (known) standard deviations. For each sample, the null hypothesis is tested by a one-sample z test, and the p value is compared with the specified significance level.
1 | power.sim.1sz(n, nsim, d, lev = 0.05)
|
n |
The size of each simulated sample. |
nsim |
The number of simulated samples to run. |
d |
An effect size: the number of (known) standard deviations by which the expectation of the sampled data differs from a hypothesized expectation. |
lev |
The significance level of the one-sample z-test. |
The proportion of p values less than the specified level (i.e. the estimated power).
1 | powersim.1sz(n = 20, nsim = 10000, d = .5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.