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

Raking a poll short on young respondents: weights on age, sex and education move the answer six points

ToolSurvey Weighting (Raking)
Sourceoriginal
LevelUndergraduate

Problem

A poll of 600 respondents has 7.8 % aged 18-29 where the population has 21 %, 58.5 % women where the population has 51 %, and 52.7 % with a degree where the population has 38 %. Rake the respondents to the three population margins, give the design effect and effective sample size of the weights, and estimate the share who approve and the mean hours online with and without the weights.

Inputs to Enter

  • Respondent rows: the 600 seeded illustrative rows of the tool's default case (id, age, sex, education, approve, hours online)
  • Population targets (illustrative): age 18-29 21 %, 30-44 25 %, 45-64 33 %, 65+ 21 %; sex female 51 %, male 49 %; education no degree 62 %, degree 38 %
  • Tolerance 0.001 percentage points, at most 100 iterations, no base weights, no trimming, 95 % confidence
Open the Survey Weighting (Raking) tool (loaded with this example)

Answers

  • First pass over age: factor of 18-29 = 0.21 × 600 / 47 = 2.681; of 30-44, 1.230; of 45-64, 0.876; of 65+, 0.615
  • Largest margin gap after iterations 1, 2 and 3: 0.6530, 0.0418 and 0.0004 percentage points; converged in 3 iterations
  • Weights from 0.365 to 4.391 (mean 1); the five men aged 18-29 without a degree carry 4.391 each
  • Design effect = 600 × 861.7 / 600² = 1.436; effective sample size = 600 / 1.436 = 417.8
  • Approve: 45.3 % ± 4.0 unweighted, 51.5 % ± 4.8 weighted (95 %); hours online: mean 14.69 ± 0.68 unweighted, 17.77 ± 0.89 weighted

Notes

The tool's default inputs are this case; press Submit, or open /analysis-tools/statistics/surveys/survey-weighting-raking/?try=young-under-counted. Seeded illustrative respondents and made-up population targets, no real survey; every figure is checked against an independent numpy computation. The margins of error use the Kish effective sample size, an approximation stated on the page.

More Examples for This Tool