Description Usage Arguments Value Examples
Computes the Power of a Z-test for the Population Proportion
1 | pwr.p.test(p0, p1, n, sig.level = 0.05, alternative = "two.sided")
|
p0 |
The value of the population proportion (in decimals) from the null hypothesis |
p1 |
An alternative value of the population proportion |
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.p.test(p0 = 0.10, p1 = 0.15, n = 100,
sig.level = 0.01, alternative = "two.sided")
pwr.p.test(p0 = 0.2, p1 = 0.25, n = 50,
sig.level = 0.10, alternative = "greater")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.