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


Survey Weighting (Raking)

Paste survey respondents (an id and two to six categorical variables such as age, sex, region) and the population targets for each variable, and get a weight for every respondent by raking (iterative proportional fitting): the sample before and after against the targets, the iterations to convergence, the design effect and effective sample size, the weight distribution, the outcome columns estimated with and without the weights, and the id, weight list to copy. Optional base weights and weight trimming. The page computes and describes weights; it does not say whether a sample or a weight is fit for a purpose.

  • Computes the weights, where most free pages only use a weight column they are given: rakes pasted respondents to population margins on up to six variables

  • Before, after and target drawn for every category, with the largest gap named and a convergence table by iteration

  • Kish design effect, effective sample size, weight distribution and the combinations that carry the largest weights; optional trimming with re-raking

  • Outcome columns estimated unweighted and weighted with margins of error, and the weights as an id, weight list to copy into a spreadsheet

Survey Weighting (Raking)

/

What to Paste

Layout of the two boxes. Respondent rows: a header line id, age, sex, approve and one line per respondent such as R001, 18-29, female, 1; the first column is the id, the columns named in the targets are raked on, any other column is an outcome. Population targets: one line per category such as age, 18-29, 21 giving variable, category and percent or count. Raking in a two-by-two table of sex by age: first the weights of each row are scaled so that the row totals match the sex targets, then the weights of each column so that the column totals match the age targets, and the two steps repeat until both sets of totals match.

Respondents (header line, then one row each)


Population Targets (variable, category, percent or count)



Raking Settings












References

Deming, W. E., and Stephan, F. F. (1940). "On a Least Squares Adjustment of a Sampled Frequency Table When the Expected Marginal Totals Are Known." The Annals of Mathematical Statistics, Vol. 11, No. 4, pp. 427–444.

Kish, L. (1965). Survey Sampling. John Wiley and Sons, New York.

Kish, L. (1992). "Weighting for Unequal Pi." Journal of Official Statistics, Vol. 8, pp. 183–200.

Kalton, G., and Flores-Cervantes, I. (2003). "Weighting Methods." Journal of Official Statistics, Vol. 19, No. 2, pp. 81–97.

Centers for Disease Control and Prevention (2026). Weighting the BRFSS Data: 2025 BRFSS Weighting Description. Behavioral Risk Factor Surveillance System, Centers for Disease Control and Prevention, Atlanta, GA.

Asiala, M. E. (2011). Evaluating Use of Family Equalization for American Community Survey Weighting Methodology. 2011 American Community Survey Research and Evaluation Report Memorandum Series ACS11-RER-06, U.S. Census Bureau, Washington, DC.

Fay, R. E. (2005). "Potential Applications of Model-Assisted Estimation to Demographic Surveys in the U.S." In Proceedings of the 2005 Federal Committee on Statistical Methodology Research Conference, Federal Committee on Statistical Methodology, Washington, DC.


DISCLAIMER: The methods and calculation on aNOWysis.com are provided as means to educate the reader. There is no warranty, expessed or implied, as to the relevance or accuracy of the methods or calculations. All calculations should be checked by a qualified analyst for appropriateness and accuracy. We will not be held liable for any damages, injuries or deaths caused by using methods or calculations from this site.