Formulas for calculating respondent weightings

Formulas can be used when calculating respondent weightings.

Continuous respondent weightings using formulas

When calculating weightings, formulas can be used to describe a continuous weighting scale based off of respondent information.

For example, if you want to weight respondents by age, you can retrieve the age information from an additional question, then multiply it by a scaling factor.

Retrieve responses from answers using the answer(question_id, [item_id], [stimulus_id]) function. We can obtain the id navigating to the Additional questions and selecting View as JSON. The question id will be in the id field.

If you wanted respondents to be weighted by 10% of their age, set the scaling factor to 0.1. The final formula would be: