powered by
Computes the estimation of the simple random sampling.
var_srs(Y, w = rep(1, length(Y)))
A list with objects are returned by the function:
S2p - a data.table containing the values of the variance estimation of the population.
S2p
data.table
varsrs - a data.table containing the values of the variance estimation of the simple random sampling.
varsrs
The variables of interest.
Weight variable. One dimensional object convertible to one-column data.frame.
data.frame
Yves G. Berger, Tim Goedeme, Guillame Osier (2013). Handbook on standard error estimation and other related sampling issues in EU-SILC, URL https://wayback.archive-it.org/12090/20231228140953/https://cros-legacy.ec.europa.eu/content/handbook-standard-error-estimation-and-other-related-sampling-issues-ver-29072013_en
vardom, vardomh, varpoord
vardom
vardomh
varpoord
Ys <- matrix(rchisq(10, 3), 10, 1) ws <- c(rep(2, 5), rep(3, 5)) var_srs(Ys, ws)
Run the code above in your browser using DataLab