e4m: Statistical errors for the estimation of a single mean

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/e4m.R

Description

This function computes the cofficient of variation and the standard error when estimating a single mean under a complex sample design.

Usage

1
e4m(N, n, mu, sigma, DEFF = 1, conf = 0.95, plot = FALSE)

Arguments

N

The population size.

n

The sample size.

mu

The value of the estimated mean of the variable of interest.

sigma

The value of the standard deviation of the variable of interest.

DEFF

The design effect of the sample design. By default DEFF = 1, which corresponds to a simple random sampling design.

conf

The statistical confidence. By default conf = 0.95.

plot

Optionally plot the errors (cve and margin of error) against the sample size.

Details

We note that the coefficent of variation is defined as:

cve = \frac{√{Var(\bar{y}_S)}}{\bar{y}_S}

Also, note that the magin of error is defined as:

\varepsilon = z_{1-\frac{α}{2}}√{Var(\bar{y}_S)}

Value

The coefficient of variation and the margin of error for a predefined sample size.

Author(s)

Hugo Andres Gutierrez Rojas <hagutierrezro at gmail.com>

References

Gutierrez, H. A. (2009), Estrategias de muestreo: Diseno de encuestas y estimacion de parametros. Editorial Universidad Santo Tomas

See Also

ss4p

Examples

1
2
3
e4m(N=10000, n=400, mu = 10, sigma = 10)
e4m(N=10000, n=400, mu = 10, sigma = 10, plot=TRUE)
e4m(N=10000, n=400, mu = 10, sigma = 10, DEFF=3.45, conf=0.99, plot=TRUE)

samplesize4surveys documentation built on Jan. 18, 2020, 1:11 a.m.