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

Next Topic

Book Contents

Book Index

Coding

The Coding is an indication of the method used to store respondent data in the raw data file and is particularly relevant to variables with a response of multiple. The method used will be determined by the response and length set for the variable. Although, Snap will set the Coding automatically, and use Field for question and pre-coded type variables, the Coding will change if fields such as response and length are changed manually in the Variable Details window.

The four methods are:

Field: This is the default method used. Data is stored in comma separated format and sufficient space is allocated to hold a response for every possible code or answer. For example, a variable with 6 codes would occupy a length of 11 characters to allow for a comma between each reply, and the data for a respondent ticking boxes 1, 4 and 5 would be held as "1,4,5". When the number of codes exceeds 9, two digits are then allowed for each answer. Consequently, a variable with 18 codes would occupy 53 characters (18 x 2, plus 17 commas).

Multi: This is the traditional method used by Snap to compress data as much as possible and up to 6 answers are stored in each character. Consequently, a variable with 18 possible answers would take up 3 characters.

Single: The extended format of storing data with 1 column for each possible answer (binary format). Consequently, a question with 5 possible answers will occupy 5 characters and will store the answer as a series of 0s and 1s. Data that was stored as 00101 would represent a valid or "Yes" response to codes 3 and 5. Although 0s and 1s are generally used, Ys and Ns would generate the same result.

Item Length: Data is recorded in space delimited format as a string of numbers. This method is only used for alphanumeric multiple variables. A variable with 6 single character values would occupy a length of 6 characters. A variable of 6 codes, each with a 3-character reply, would occupy 18 characters.

See Also

Name

Label

Type

Response

Text

Codes

Code List

Errors

Not Asked

Valid

No Reply

Code Label

Value

Counts

Source

Pattern

Sequence

Length

Must Answer

Ordering

Min

Max

Exclusive

Mask

Auto answer