Description Usage Arguments Value Examples
Computes the Power of a Z-test for the Population Mean
1 | pwr.z.test(m0, m1, sd, n, sig.level = 0.05, alternative = "two.sided")
|
m0 |
The value of the population mean from the null hypothesis |
m1 |
An alternative value of the population mean |
sd |
Population standard deviation |
n |
Sample size |
sig.level |
Significance level, default is 0.05 |
alternative |
type of alternative, with values "two.sided","less" or "greater", default is "two.sided" |
Power of the test
1 2 3 4 | pwr.z.test(m0 = 3, m1 = 2.5, sd = 1, n = 15,
sig.level = 0.01, alternative = "two.sided")
pwr.z.test(m0 = 3, m1 = 3.5, sd = 1, n = 20,
sig.level = 0.10, alternative = "greater")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.