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 time function

You can also categorise time responses using time functions. This example uses the hour function in a Derived variable to group responses to Q1b, "What time did you arrive?" into suitable ranges for analysis.

  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: Arrivalhour

    Label: Hour of arrival

    Type: Derived (the variable will derive its data from other existing variables).

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

    VW: Derived variable using hour function

  4. Set up the code values to categorise by hour. For example:

    Code

    Code Label

    Value

    1

    11am

    Q1b hour=11

    2

    12pm

    Q1b hour=12

    3

    1pm

    Q1b hour=13

    4

    2pm

    Q1b hour=14

    5

    3pm

    Q1b hour=15

  5. Click Save button to save the variable. You can now use this variable to analyse by respondents hour of arrival.

See Also

Using time data

Time format examples

Time Functions

Categorising time responses using a single derived variable

Calculating the interval between two times using time variables