Description Usage Arguments Details Value Author(s) References See Also Examples
This function computes the cofficient of variation and the standard error when estimating a double difference of proportions under a complex sample design.
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. |
P3 |
The value of the third estimated proportion. |
P4 |
The value of the fouth estimated proportion. |
DEFF |
The design effect of the sample design. By default |
conf |
The statistical confidence. By default |
plot |
Optionally plot the errors (cve and margin of error) against the sample size. |
We note that the margin of error is defined as:
cve = \frac{√{Var((\hat{P}_1 - \hat{P}_2) - (\hat{P}_3 - \hat{P}_4) ) }}{(\hat{P}_1 - \hat{P}_2) - (\hat{P}_3 - \hat{P}_4)}
Also, note that the magin of error is defined as:
\varepsilon = z_{1-\frac{α}{2}}√{Var((\hat{P}_1 - \hat{P}_2) - (\hat{P}_3 - \hat{P}_4) )}
The coefficient of variation and the margin of error for a predefined sample size.
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.