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

Next Topic

Book Contents

Book Index

Setting up a derived variable to analyse your data

If you wish to include some comparison charts, showing how the subject of the report compares to the average, then you cannot use a filter, as this would only use the subject data. Instead, you must create a derived variable that you can use to break down your data.

This example shows you how to set up a derived variable for the Crocodile survey supplied with Snap, allowing you to compare ratings for the current (contextualised) location with ratings for all locations. It allows comparisons between the current location and all locations (including the current) and other locations (all locations excluding the current location).

  1. Open the Crocodile survey supplied with Snap.
  2. Click Variables window button on the Snap toolbar to display the Variables window.
  3. Click New button on the Variables window toolbar to add a new variable.
  4. Specify the Variable details:

    Name: CComparison

    Label: Compare context to all

    Type: Derived (the variable will derive its data from Q0, the existing location question).

    Response: Multiple (each respondent will fall into two cases).

  5. Double click in the first code label and click the [Insert] button. Select Variable Field... from the drop-down list.

    Derived variable with insert button highlighted

  6. Select Q0 (the location) as the Variable, and Context as the Aspect. This will give the selected location as the code label. Press [OK] to return to the variable definition.

    New vaariable field getting context aspect

  7. Press [Tab] to move to the Values column. Enter Q0=Q0@context. This code will be used when the response applies to the specified location.
  8. Press [Tab] to move to the next Label field and enter Other locations. Then enter NOT(Q0=Q0@context) as the Value. This code will be used when the response does not apply to the specified location.
  9. Press [Tab] to move to the next Label field and enter All locations. Then enter True as the Value.

    New vaariable field getting context aspect

  10. Click Save button to save the comparison variable.

See Also

Creating a comparison bar chart