NIPO ODIN Version 5.17
*TABLE
Purpose
Enables export information for hierarchical data for the NIPO DSC for IBM SPSS, used by the IBM SPSS Data Collection Data Model.
Syntax
*TABLE ["<name> description"]
Description
This command influences the NIPO Diana / Nvision Script export for use with the NIPO DSC for IBM SPSS. It adds a comment line (COM ) to the variable definition which tells the NIPO DSC for IBM SPSS interface that the *FORM question or *REPEAT block must be used for a hierarchical data representation.
The *TABLE command does not affect The COM line is ignored in NIPO Diana / Nvision Script.
This command can be used in two ways:
- On a
*FORM question definition. No label needs to be specified, as the block name is taken from the variable name or the variable *LABEL . Hierarchical data of the fields of a *FORM question can only be created if all fields in the *FORM question are of the same type and size (for example, all *NUMBER s of size 2, all *SCALE s of size 1, a single *GRID et cetera). - Within a
*REPEAT block. The *TABLE command is specified in advance of the first question in the repeat block and defines a name for the current iteration.
Arguments
"<name> description" For use in *REPEAT blocks only. The name part of the text is required and consists of a single word that sets the name of the hierarchical block of data. The description contains a descriptive text that is different for each iteration within the *REPEAT block. Change this text within a repeat block by displaying variable content using *? (example below).
Example 1: *FORM question
*QUESTION 4 *FORM *TABLE *VCONTROL Q1 W *LABEL "Beer" Please rate the brands on a four-point scale.
Enjoy fully Enjoy somewhat Dislike somewhat Do not like at all Heineken 1:*GRID 73L24 5.4 4.8 *MULTI Grolsch Hertog Jan Amstel Leeuw
This creates a comment line that tells the NIPO DSC for IBM SPSS to lay out the grid in a hierarchical data structure.
Example 2: *REPEAT block with two questions
*TEXTVARS Brand
*REPEAT 4 *FIELD 101L24 *REPNUM 1: *PUT Brand "Grolsch" *REPNUM 2: *PUT Brand "Hertog Jan" *REPNUM 3: *PUT Brand "Amstel" *REPNUM 4: *PUT Brand "Leeuw"
*TABLE "Beer *? Brand"
*QUESTION 5 *CODES 1L1 For *? Brand, please mark your overall taste experience:
1: Good 2: Above average 3: Average 4: Below average 5: Bad
*QUESTION 6 *FORM *TABLE *LABEL "Consumption" Your average consumption of *? Brand on a weekly basis:
1: Glasses: *NUMBER 3L2 *NON 2: Bottles: *NUMBER 5L2 *NON
*ENDREP
This creates a comment line that tells the NIPO DSC for IBM SPSS to lay out the repeat block in a hierarchical data structure, where the block is named "Beer" and the nested brand block names are specified in the *REPNUM lines. Inside each brand block there is a nested "Consumption" block.
|