Snap XMP Help

Categorising literal responses

< All Topics
image_pdfimage_print
  1. Click VariablesIcon.png to display the Variables window.
  2. Select the variable which will act as a source to the derived variable. Double click the variable or click VariablePropsIcon.png to open the Variable Details dialog.
  3. Click ToggleDefnIcon.PNG to display the Pattern drop-down. If it is not already selected choose lower case as the pattern.
  4. Save the variable and return to the Variables window.
  5. Click NewSurveyIcon.png to add a new variable.
  6. Specify the Variable Details:
    • Name: V1
    • Label: Comments
    • Type: Derived (the variable will derive its data from existing variables).
    • Response: Multiple (each respondent could fall into more than one of the new codes if they made more than one comment).
  7. Specify the Code Details:

Code

Code Label

Value

1

Food is cold

Q9=”food” and Q9=”cold”

2

More seating required

Q9=”seat”

3

Better parking facilities

Q9=”park”

  1. Click SaveIcon.png to save the variable. The variable can then be used in tables and charts in the usual way.
Table showing participant's comments

Snap is case sensitive so an appropriate pattern must be applied to the source variable to ensure that all cases with relevant comments are captured.

Categorising postcodes

The best way of analysing postcodes is to create a Derived Single Response variable and to apply a pattern to the variable.

The following instructions show how to categorise the postcodes by area.

  1. Select Tailor | Patterns to open the Patterns dialog.
  2. Select postcode uk from the list and click Clone.
  3. Give the pattern a new name, such as UK Postcode area.
  4. Clear the Result box if required. Hover over the Result box and right click.
  5. Highlight Component and a list will appear containing the components of the pattern.
  6. Choose area. This will now appear in the Result box.
  7. Click OK to return to the Patterns dialog
  8. This pattern will be used as part of an ‘as’ expression in the derived variable.
Pattern Properties dialog
  1. From the Variables Window click NewSurveyIcon.png to add a new variable.
  2. Specify the Variable Details:
    • Name: V3
    • Label: Area
    • Type: Derived
    • Response: Single (each respondent will only fall into one of the new codes)
  3. Specify the Code Details:

Code

Code Label

Value

1

Bristol

Q11 as UK postcode area ==”BS”

2

Reading

Q11 as UK postcode area ==”RG”

  1. Click SaveIcon.png to save the variable. The variable can then be used in tables and charts in the usual way.
Derived variable categorizing postcodes by postal area

If you wish to check your results you may do so by using the filter FilterIcon.png button in the Data Entry window. Using the example above, you could enter a filter value of V3=1 to ensure you have specified the value correctly for the ‘Bristol’ area.

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Contents