Multi-coded variable

<< Click to Display Table of Contents >>

Navigation:  Reference Manual > Variables >

Multi-coded variable

A multi-coded variable is one that has a list of possible responses and any number of the responses are allowed to be selected for each respondent.

A variable will be left empty if any of the filters applied to it are false.

A multi-coded variable may have up to 9999 responses.

Each response in a variable has:

A logic definition that determines whether the response is selected or not

A text that describes the response

These are defined with a logic definition user control on the Entry details window.

Each response may also have:

Various analysis settings to be used in reports

These are set using the "Analysis settings" tool window invoked by the Entry details menu or toolbar.

An R (reject) response is selected if all the other responses are false.

Variables are calculated whenever a data record is loaded but can be stored in the data if required.  If storing in the data then you will need to specify the width (number of data locations).

Width 1 will allow up to 9 responses

Width 2 will allow up to 99 responses

Width 3 will allow up to 999 responses

Width 3 will allow up to 9999 responses

You will also need to specify the maximum number of responses per respondent.  The number of data locations needed is the width times the maximum number of responses per respondent.

If "Fixed response locations" is set then the maximum number of responses must be at least the number of responses in the variable.

Storage methods in a raw data file

In a raw data file if the variable is to be stored the multi-coded responses will be stored as follows:

If "Fixed response locations" is not set then the responses are stored as response numbers (also call a spread field).  Each selected response number is stored in the next available set of columns.

If "Fixed response locations" is set then the responses are also stored as response numbers.  Each response number is stored in the set of columns reserved for that response.