Description Usage Arguments Details Value Author(s) References See Also Examples
This function computes the power for a (right tail) test of difference of proportions.
1 |
N |
The population size. |
n |
The sample size. |
P1 |
The value of the first estimated proportion. |
P2 |
The value of the second estimated proportion. |
D |
The value of the null effect. |
DEFF |
The design effect of the sample design. By default |
conf |
The statistical confidence. By default |
plot |
Optionally plot the power achieved for an specific sample size. |
We note that the power is defined as:
1-Φ(Z_{1-α} - \frac{(D - (P_1 - P_2))}{√{\frac{DEFF}{n}(1-\frac{n}{N})(P_1Q_1+P_2Q_2)}})
The power of the test.
Hugo Andres Gutierrez Rojas <hagutierrezro at gmail.com>
Gutierrez, H. A. (2009), Estrategias de muestreo: Diseno de encuestas y estimacion de parametros. Editorial Universidad Santo Tomas
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.