Description Usage Arguments Value Examples
Computes the Power of a Z-test for the Population Mean
1 2 3 4 5 6 7 8 | ssize.z.test(
m0,
m1,
sd,
power = 0.9,
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 |
power |
Power of the test |
sig.level |
Significance level, default is 0.05 |
alternative |
type of alternative, with values "two.sided","less" or "greater" |
Sample size required to achieve the given power
1 2 3 4 | ssize.z.test(m0 = 3.25, m1 = 3.5, sd = 1, power = 0.9,
sig.level = 0.01, alternative = "two.sided")
ssize.z.test(m0 = 3.25, m1 = 3, sd = 1, power = 0.92,
sig.level = 0.10, alternative = "less")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.