The analysis of survey data usually uses weighting, to make the sample look more like the intended population of the survey.

This article looks at the basic tools in Prof Lumley’s survey R package.

Weighting with dummy data

What weights should be used is a major question in survey research. (Photo: Steen Jepsen/Pixabay)

Weights are often discussed in the analysis of survey data. As an example, if there are slightly fewer women in our sample than we would…