e4S2 {samplesize4surveys}R Documentation

Statistical errors for the estimation of a single variance

Description

This function computes the cofficient of variation and the margin of error when estimating a single variance under a sample design.

Usage

e4S2(N, n, K = 0, DEFF = 1, conf = 0.95, plot = FALSE)

Arguments

N

The population size.

n

The sample size.

K

The excess kurtosis of the variable in the population.

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 coefficient of variation is defined as:

cve = \frac{\sqrt{Var(\hat{S^2})}}{\hat{S^2}}

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

\varepsilon = z_{1-\frac{\alpha}{2}}\sqrt{Var(\hat{S^2})}

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

e4S2(N=10000, n=400, K = 0)
e4S2(N=10000, n=400, K = 1, DEFF = 2, conf = 0.99)
e4S2(N=10000, n=400, K = 2, DEFF = 2, conf = 0.99, plot=TRUE)

[Package samplesize4surveys version 4.1.1 Index]