Tools › Statistics › Surveys and Sampling › Survey Weighting (Raking) › Example
Weight trimming after raking: five men under 35 among 400 respondents, weights held to 5 times the mean
| Tool | Survey Weighting (Raking) |
| Source | original |
| Level | Professional |
Problem
Of 400 respondents only 28 are under 35 (7 %), five of them men, while the population targets put 30 % under 35. Rake on sex and age, then hold the weights between 0.3 and 5 times the mean weight by trimming and raking again, and compare the weights, the design effect and the estimate of support before and after trimming.
Inputs to Enter
- Respondent rows: 400 seeded illustrative rows (id, sex, age, support); 217 women, 183 men; 28 under 35, 169 aged 35-54, 203 aged 55 and over
- Population targets (illustrative): sex female 51 %, male 49 %; age under 35 30 %, 35-54 34 %, 55 and over 36 %
- Advanced: trim weights within bounds, lower bound 0.3, upper bound 5; tolerance 0.001 points
Answers
- Raking alone converges in 5 iterations (gaps 7.34, 0.66, 0.063, 0.0060, 0.0006 points): weights from 0.552 to 6.132, design effect 1.894, effective sample size 211
- Trimming: 5 respondents set to the bound and the weights raked again 9 times (29 iterations in all); weights from 0.524 to 5.000, design effect 1.860, effective sample size 215
- The 23 women under 35 rise from 3.884 to 4.130 each to keep the age margin at 30 %
- Support: 40.8 % ± 4.8 unweighted; 45.4 % ± 6.7 raked without trimming; 44.9 % ± 6.6 with the bounds
- With an upper bound of 4 the bounds and the targets cannot both be met: 7 % of the respondents carrying 30 % of the population need a mean weight of 4.29
Notes
Open this case in the tool: /analysis-tools/statistics/surveys/survey-weighting-raking/?try=rare-cell-trimmed. Seeded illustrative data. The trimming procedure (set to the bound, rake again, repeat until no weight is beyond a bound by more than 0.01 %) is the page's own and is stated on its method page; survey organizations trim in different ways. The bounds 0.3 and 5 are an illustration, not a standard.
More Examples for This Tool
- Raking a poll short on young respondents: weights on age, sex and education move the answer six points
- Raking by hand: forty respondents, sex by age, four iterations
- Raking a sample that already matches the population: design effect 1.02
- A target that cannot be met: an online panel with no respondent aged 65 or over