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

Next Topic

Book Contents

Book Index

Categorising time responses using a single derived variable

In this example of use of a Time variable, a Derived Single Response variable is used to group Q1b, "What time did you arrive?" 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: Time

    Label: Time of arrival

    Type: Derived (the variable will derive its data from Q1b, the existing time of arrival question).

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

    Smart reporting: image of.

  4. Specify the Code Details, for example:

    Code

    Code Label

    Value

    1

    Between 10am-11am

    Q1b>=10:00 & Q1b<=11:00

    2

    Between 11am-12pm

    Q1b>11:00 & Q1b<=12:00

    3

    Between 12pm-1pm

    Q1b>12:00 & Q1B<=13:00

    4

    Between 1pm-2pm

    Q1b>13:00 & Q1b<=14:00

    5

    Between 2pm-3pm

    Q1b>14:00 & Q1b<=15:00

    Any recognisable time format can be used in the Value specification but if using the 12 hour clock the am and pm suffixes must be applied

  5. Click Save button to save the variable. This derived variable can now be used in tables and charts in the usual way.

    Semantic Scale grid example stats definition

See Also

Using time data

Time format examples

Time Functions

Categorising time responses using a time function

Calculating the interval between two times using time variables