How To Set The Weighted Sample Size
It is often desirable to choose the weighted sample size (Population) that is shown when a weight is applied to a table. For example, you may wish to have weights specified such that the Base Population matches the known population size of the country in which the study was conducted.
If you use the default settings when creating a weight in Q, the Base Population will match the Base n. The methods below can be used to choose the desired weighted sample size.
When creating the weight in Q, you can set targets by Population numbers rather than percentages.
- Select Create > Variables and Questions > Variables > Weight.
- Under the Target Numbers section:
- Click Population/Count.
- Un-tick Force sum of weights to equal sample size.
- Set your weight targets as normal, but instead of specifying targets as percentages, specify counts such that they add up to the desired population number.
If using the Recompute for each option then this will result in Populations which are equal to the given total for each of the categories in the selected question.
- In the Expression use the formula: my_weight * 600 / 602
- Replace my_weight with the Variable Name of your existing weight variable.
- Replace 600 with the desired weighted sample size.
- Replace 602 with the current sample size in your data file.
- Change the Label to something appropriate, for example - Population Adjusted Weight.
- Click OK.