| MU284strat | R Documentation |
Stratified simple random sample (without replacement) of municipalities from the MU284 population in Särndal et al. (1992). Stratification is by geographic region and a take-all stratum (by 1975 population size), which includes the big cities Stockholm, Göteborg, and Malmö.
data(MU284strat)
A data.frame with 60 observations on the following variables:
LABELidentifier variable, [integer].
P851985 population size (in thousands),
[double].
P751975 population size (in thousands),
[double].
RMT85Revenues from the 1985 municipal taxation
(in millions of kronor), [double].
CS82number of Conservative seats in municipal council,
[double].
SS82number of Social-Democrat seats in municipal
council (1982), [double].
S82total number of seats in municipal council (1982),
[double].
ME84number of municipal employees in 1984,
[double].
REV84real estate values according to 1984 assessment
(in millions of kronor), [double].
CLcluster indicator (a cluster consists of a set of
neighbouring municipalities), [integer].
REGgeographic region indicator, [integer].
Stratumstratum indicator, [integer].
weightssampling weights, [double].
fpcfinite population correction, [double].
The MU284 population of Särndal et al. (1992, Appendix B) is a
dataset with observations on the 284 municipalities in Sweden in the
late 1970s and early 1980s. The MU284 population data
are available in the sampling package of Tillé and Matei (2021).
The population is divided into two parts based on 1975 population
size (P75):
the MU281 population, which consists of the 281 smallest municipalities;
the MU3 population of the three biggest municipalities/ cities in Sweden (Stockholm, Göteborg, and Malmö).
The three biggest cities take exceedingly large values (representative
outliers) on almost all of the variables. To account for this, a stratified
sample has been drawn from the MU284 population using a take-all stratum.
The sample data, MU284strat, (of size n=60) consists of
a stratified simple random sample (without replacement)
from the MU281 population, where stratification is by
geographic region (REG) with proportional sample
size allocation;
a take-all stratum that includes the three biggest cities/ municipalities (population M3).
Särndal, C.-E., Swensson, B. and Wretman, J. (1992). Model Assisted Survey Sampling, New York: Springer-Verlag.
Tillé, Y. and Matei, A. (2021). sampling: Survey Sampling. R package version 2.9. https://CRAN.R-project.org/package=sampling
MU284pps
head(MU284strat)
library(survey)
# Survey design for stratified simple random sampling without replacement
dn <- if (packageVersion("survey") >= "4.2") {
# survey design with pre-calibrated weights
svydesign(ids = ~LABEL, strata = ~Stratum, fpc = ~fpc,
weights = ~weights, data = MU284strat,
calibrate.formula = ~-1 + Stratum)
} else {
# legacy mode
svydesign(ids = ~LABEL, strata = ~Stratum, fpc = ~fpc,
weights = ~weights, data = MU284strat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.