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

Next Topic

Book Contents

Book Index

Precoded Single Variable (legacy only)

Precoded variables are now largely superseded by derived variables. They may still be used in merged or repeated surveys to remove a legacy variable from view in questionnaire design and data entry while retaining its current values.

Precoded Single Variables were used in the analysis of replies to questions with a predefined list of coded answers and where the respondent can choose only one. They operate in a similar fashion to question single variables, except that it is not possible to included pre-coded variables in a printed questionnaire or in Questionnaire, Interview or Prompted mode of data entry. This type of variable can be used in analysing data from external sources,

The fields for a Precoded Single variable generally follow the same rules as described earlier in this section, with the exception of the following:

Length

A number between 1 and 4 represents the length of the field being captured. The default setting is 1 and this will allow for up to 9 codes to be created. As the code list extends to 10, the length will be reset to 2, when the code list extends beyond 99, it will be set to 3 and when it reaches 1000 it will be reset to 4.

Code values

Pre-defined values are generated from 1 to "n" to represent the valid value associated with the code label. In the above example, a respondent reply of "Male" will be recorded in the data as a "1" and a "Female" as a "2". Once the list extends to 10, the length is increased to 2 and valid answers now become "01", "02" etc.

In the event of the length field being set to 1, Snap will accept values from 1 to 9 and A to Z as valid codes. This results in 35 valid codes being available in one character position and is how Snap records data in compressed format. An "A" represents the 10th code, a "B" represents the 11th code etc.

See Also

Precoded Multiple Variable (legacy only)