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

Next Topic

Book Contents

Book Index

Derived single variable

Derived single variables are single-response variables that have been created from other variables. It is identical to a standard single-response variable, except that the Valid value is replaced by an expression. There must be one expression for each code.

The response to the derived variable is calculated automatically by Snap according to the Value expression. The first code where the expression is true will be the response selected.

To create categories of:

Males under 25

Males over 25

Females under 25

Females over 25

from the Age and Gender information, you would use a derived variable.

You can also set up a derived single variable to store a filter e.g. regular tables of female car drivers in various regions of the country. Set up a derived variable (V1) which has the required filters as its codes. For example code 1 might be:

SEX=2 AND DRIVER=1 AND REGION=3

WinHelp: LightWith a single response variable a case/respondent can only fall into one of the categories/codes. With each case Snap looks at the value for the first code. If the value expression is met by the case then Snap moves on to a new case; if the value expression is not met by the case then Snap moves onto the next code until it does (or doesn't) find a value expression that ties up with the case.

WinHelp: LightIf more than one expression could be true for any case, use a derived multiple variable.

See Also

Derived multiple variable

Derived quantity variable

Derived date variable

Derived time variable

Derived literal variable