| MU284pps | R Documentation | 
Probability-proportional-to-size sample (PPS) without replacement of municipalities from the MU284 population in Särndal et al. (1992). The sample inclusion probabilities are proportional to the population size in 1975 (variable P75).
data(MU284pps)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].
REGgeographic region indicator, [integer].
CLcluster indicator (a cluster consists of a set of
neighbouring municipalities), [integer].
weightssampling weights, [double].
pisample inclusion probability, [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 data frame MU284pps is a probability-proportional-to-size
sample (PPS) without replacement from the MU284 population.
The sample inclusion probabilities are proportional to the
population size in 1975 (variable P75). The sample has been
selected by Brewer’s method; see Tillé (2006, Chap. 7).
The sampling weight (inclusion probabilities) are calibrated to
the population size and the population total of P75.
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
Tillé, Y. (2006). Sampling Algorithms. New York: Springer-Verlag.
MU284strat
head(MU284pps)
library(survey)
# Survey design with inclusion probabilities proportional to size
dn <- if (packageVersion("survey") >= "4.2") {
        # survey design with pre-calibrated weights
        svydesign(ids = ~LABEL, fpc = ~pi, data = MU284pps, pps = "brewer",
                  calibrate.formula = ~1)
    } else {
        # legacy mode
        svydesign(ids = ~LABEL, fpc = ~pi, data = MU284pps, pps = "brewer")
    }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.