Defining Strata

Global definition

When a group of strata is derived from combinations of choice categories, their definitions can usually be generated by through a global strata definition. You can create the definition by typing it (Definition by Syntax option) or by generating (Definition Wizard option).

Creating strata using Definition by Syntax

The Definition by Syntax option allows you to create multiple strata by entering (typing) a single expression. The syntax for an expression is:

Question (choice list or [group of choices])

or

Question (choice list or [group of choices]) X Question (choice list or [group of choices])

Note: The X is a cross product operator

Examples of global strata definitions

SEX

Creates a stratum for each choice of the SEX question

REGIO ([#1-#3],#4-#9)

Creates a single stratum for the first 3 choices of REGIO combined, and a stratum for each of the 6 next choices.

REGIO (#1-#3) X SEX

Creates a stratum for each combination of the specified choices of REGIO with the choices of SEX.

To create strata using the Definition by Syntax option

  1. Select Tools>Definition by Syntax in the mini toolbar.

  2. Type the expression in the window

  3. Click on the 'Create Strata' button

  4. Click on the Accept button to add the strata showing in the table; or click on the Cancel button.


     

 

To create strata using the Definition Wizard

  1. Select Tools>Definition Wizard in the mini toolbar.

  2. The Strata Definition Wizard page will appear:

  3. In the Available Questions list, use the check-boxes to pick all the questions that you will use in defining your strata.

  4. Click on the right-pointing 'arrow' button to move the questions into the Strata Questions list.

  5. In the Strata Questions list, select a question. If you wish to select a sub-set of its choice codes, expand it by clicking on the + sign. The codes will be displayed.

  6. Select the desired code(s) from the Code list

  7. Click on either List or Group depending on whether you wish to base strata on each code individually or grouped together:

  8. To add another question return to step 5.

  9. Optional: Click on Cross if you wish your choices selected so far to be crossed with each other.

  10. When you have finished building your expression, click on the Create Strata button. This will add all the new strata, displaying their individual definitions and labels in the window on the right-hand side.

Individual Definition

If a global definition has been used, the individual strata definitions generated can be edited: click on a definition to select it, and then press the F2 key to open-up the window to edit it. You can also simply double-click on the definition. If you type directly in the definition field it will overwrite the current definition.

To insert a new stratum, click on an existing one and then select Edit>Insert in the 'mini' menu bar just above the strata table. This will add a new row in the table. Similarly you can delete an existing stratum by selecting it and selecting Edit>Delete.

Any valid combination of expressions can be used to define membership in a stratum. See IF Conditions for a full definition of the expressions and syntax.

Warning: The syntax for Field tools (Quotas, Extract and Browse) is a simplified subset of the valid expressions described in the Design module; described under Filter expressions in Field Tools.

When defining strata, keep the following in mind:

Examples of a stratum definition

MOD ($Q, 2) == 0 respondents with even case ID numbers

$A == 0 fresh cases

$A > 0 used cases

INCOM > 50000 AND CITY=NY