Tools › Statistics › Surveys and Sampling › Survey Weighting (Raking) › Example

Raking a sample that already matches the population: design effect 1.02

ToolSurvey Weighting (Raking)
Sourceoriginal
LevelUndergraduate

Problem

A sample of 500 was drawn with the same age, sex and region shares as the population, so it differs from the targets only by chance. Rake it on the three variables and state what the weighting changes.

Inputs to Enter

  • Respondent rows: 500 seeded illustrative rows (id, age, sex, region, satisfaction on a 0 to 10 scale)
  • Population targets (illustrative): age 21 / 25 / 33 / 21 %; sex 51 / 49 %; region north 18 %, south 37 %, east 21 %, west 24 %
Open the Survey Weighting (Raking) tool

Answers

  • Category furthest from its target: age 45-64, 39.0 % of the respondents against 33.0 %
  • Converged in 3 iterations (gaps 0.4967, 0.0190, 0.0007 points); weights from 0.740 to 1.318
  • Design effect 1.024; effective sample size 488 of 500
  • Mean satisfaction 6.43 ± 0.17 unweighted and 6.43 ± 0.17 weighted

Notes

Open this case in the tool: /analysis-tools/statistics/surveys/survey-weighting-raking/?try=already-representative. Seeded illustrative data; checked against an independent numpy computation. Weights near 1 leave the estimates and their precision almost as they were.

More Examples for This Tool