This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Rim weighting

This section describes how to apply rim-weighting to an analysis table or chart. You would do this if:

(Rim-weighting is also known as "iterative proportional fitting".)

Background

Rim-weighting uses a mathematical algorithm to help you provide an even distribution of results across the entire dataset while balancing certain categories such as age or gender to pre-determined totals. It weights the specified characteristics simultaneously and disturbs each variable as little as possible.

For example, if you wished to weight your samples so that they were 50% male and 50% female, and also 20% in each of five age brackets, the algorithm would calculate the correct weighting that needed to be applied to each table entry (combining age and gender).

It is not a good idea to use rim-weighting if:

Summary of steps

To use rim-weighting you would need to:

  1. Open the questionnaire in Snap and export the variables you wish to weight to a Triple-S format file.
  2. Set the target for each variable code (as an absolute value or a proportion) in the Toolkit Rim Weight program and process the data. This writes extra data back to the original survey and creates a weight variable in a Snap Interchange Format (SIF) file.
  3. In Snap, import the weight variable and use it in your table generation.

The example below shows a table weighted proportionally by sex, giving 50% males and 50% females, and rounded up to equal absolute numbers by age (giving a total of 300 respondents). You can practice the same example using the Crocodile survey that comes with Snap 11.

Step 1: Exporting the variables to be weighted

Open the survey in Snap and display the Variables Window.

  1. Select File | Export.
  2. Specify the Variable Export details:
    • Format: Select triple XML (SSS) v1.1
    • File: Enter the destination file name and path (Snap supplies a default name and directory).
    • Content: Enter a comma-separated list of the single-response source variables. For example in Crocodile you could enter "Q9,Q10" for age and gender.

    and click [OK].

    • Encoding: Select Unicode
    • Case Data: Select SSS Format (asc)

    Export variable dialog: triple S 1.1

  3. Snap reports how many variables will be exported and displays the Data Export dialog to export the data associated with the variables.

  4. Confirm the details and click [OK].
  5. Close the survey in Snap.

Step 2: Setting the targets in Toolkit

  1. Selecting Start | All Programs | Snap 11 | Toolkit | Rim Weight.
  2. Browse for the exported variable file and click [Next]. (The Rim Weight program automatically selects the associated ASC data file. If it does not find it, you will need to browse for it yourself.)

  3. Browse for the Snap RDF file for the survey.

  4. The Rim Weight program automatically displays the corresponding SIF file if it exists. If not, enter a new filename.

    Click [Next].

  5. Select a code and click [Modify]. You can:
    • set the code target to be absolute or proportional by clearing or checking the Target values for question are proportions box.
    • set all codes for a variable to have the same value by checking the Apply target to all codes in question box

  6. Set the value for the code and click [OK]. It appears in the Target column. Proportional target values are shown as "value/total". For example for 20% you would enter the target as ‘20’, and as you apply it to the other codes, the tool will automatically work out the total.
  7. If you are using absolute values, ensure that you use the same absolute total for all questions.

    You can specify the name of the weight, the number of decimal places that it is calculated to and how often the algorithm is performed by clicking the [Options] button. The default name is Weight.

  8. Click [Process] to calculate the weightings. Then click [Close].

Step 3: Importing and using the weight in Snap

  1. Start Snap and open the survey. Snap will display a warning message when you re-open the survey.

  2. Open the Variables window and select File | Import.
  3. Set the Format to Snap Interchange Format (SnIF).

    Variable data import dialog

  4. Select File as the Source.
  5. Browse for the weight variable and click [OK]. Snap will close the questionnaire window if it has been left open.
  6. Snap displays a message when it has completed the import process. Click [Done].
  7. You can now use the weight variable in the same way as a normal Snap weight.

  8. Select the Results Table button ( Table button ) and type in the appropriate break and analysis fields.
  9. Type the name of the imported weight variable into the Weight field.

    RD: q9 by q10 with weight "weight"

  10. Select [OK] to build the rim-weighted table.