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

Next Topic

Book Contents

Book Index

Categorising date responses

Using a Derived Single Response variable is used to group Q1a, "When did you visit the restaurant?" into suitable ranges for analysis on a table or chart.

  1. Click Variables window button to display the Variables Window.
  2. Click New button to add a new variable.
  3. Specify the Variable details:

    Name: Date

    Label: Date of visit

    Type: Derived (the variable will derive its data from the existing date of visit question).

  4. Response: Single (each respondent will fall into only one of the new codes as there is only one date of visit per case).

  5. Specify the Code Details, for example:

    Code

    Code Label

    Value

    1

    Jan-June 2004

    Q1a>=01 Jan 04 and Q1a<01 Jul 04

    2

    July-Dec 2004

    Q1a>=01 Jul 04 and Q1a<01 Jan 05

    3

    Jan-June 2005

    Q1a>=01 Jan 05 and Q1a<01 Jul 05

    4

    July-Dec 2005

    Q1a>=01 Jul 05 and Q1a<01 Jan 06

    Any recognisable date format can be used in the Value specification.

  6. Click Save button to save the variable. The variable can then be used in tables and charts in the usual way.

See Also

Date formats

Date Functions

Using a date function to determine the day of the week of a date

Calculating age from a date of birth