Description Usage Arguments Value Examples
Computes the Sample Size of a Z-test for the Population Proportion
1 | ssize.p.test(p0, p1, power = 0.9, sig.level = 0.05, alternative = "two.sided")
|
p0 |
The value of the population proportion from the null hypothesis (in decimal form) |
p1 |
An alternative value of the population proportion |
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.p.test(p0 = 0.10, p1 = 0.08, power = 0.9,
sig.level = 0.01, alternative = "two.sided")
ssize.p.test(p0 = 0.30, p1 = 0.25, 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.