Grouping (or Coding) Variable

In STATISTICA, a grouping (or coding) variable is used to identify group membership for individual cases in the data file. Typically, the grouping variable is categorical (i.e., contains either discrete values, e.g., 1, 2, 3, ...,

Group

 Score 1

Score 2

1
3

2

2

383.5
726.4

843.7

729.9

4568.4
6752.3

5384.7

6216.9

or a few text labels, e.g., MALE, FEMALE)

Group

 Score 1

Score 2

MALE
FEMALE

FEMALE

MALE

383.5
726.4

843.7

729.9

4568.4
6752.3

5384.7

6216.9

and the values are referred to as codes (they can be integer values or integer values with text label equivalents). However, the grouping variable does not have to be a categorical variable (e.g., contain codes) in some instances (e.g., in Categorized Graphs where you can use one of the Methods of Categorization options to categorize a continuous variable). You can also recode a continuous variable into some discrete values (via the Recode facility, or Spreadsheet Formulas) and then, if desired, assign text labels to those recoded values in order to categorize the continuous variable and use it as a grouping variable.

Note that you can define up to 1,000 grouping variables in STATISTICA.