Select Codes for ...

The Select Codes for ... dialog box is displayed whenever you need to select codes for grouping variables (i.e., specific values of a variable to be used to identify group membership of cases or observations). It displays the grouping variable name and prompts you to enter the codes for that variable (e.g., 1, Male, "#52").

You can either type specific codes in the window, or enter an * (asterisk) to accept all of the codes available for the variable. When entering text codes in this window, you can save time by typing the codes in the edit field with lower case letters; Statistica automatically converts them to upper case letters (e.g., smith will be converted to SMITH). However, since Statistica distinguishes between lower and upper case letters in codes, be sure to place any code that needs to remain in lower case letters in single or double quotes (e.g., 'Smith', "Pepsi", "Dell", see below).

The following conventions apply when entering code names:

  1. If codes consist of only uppercase letters and numbers (e.g., ITEM9, MALE) but does not start with a number, the code is displayed in the edit field without single or double quotation marks around them.

  2. Codes that have been entered in the spreadsheet in upper and lower case or only lower case letters (e.g., 'Male', "test1") must have quotation marks around them (single or double) in this edit window in order to preserve the upper and lower case character formatting.

  3. Codes that start with a number or a character other than a letter (e.g., "=shift3", '39lbs', "49°C", "15-Apr") must have quotation marks (single or double) around them.

  4. Date values are displayed in quotation marks (single or double) if the variable's format is set to Date (see Variable).

For information on using code values greater than 32,000 and using dates as codes, see Codes (Values of Grouping Variables).

Shortcut. If you leave all fields in this dialog box empty (blank) and click OK, Statistica identifies and automatically uses all available codes (for the previously specified grouping variables). Also, the same effect will be achieved if you do not enter this dialog box but click the OK button in the previous (design specification) dialog box without explicitly specifying any codes.

All. Click this button to select all of the variable's values. When you click this button, Statistica automatically searches the variable values (taking into account any case selection conditions) and enters all the variable's codes in the edit window. Alternatively, to select all codes for a variable, click the OK button (leaving the edit window blank) or enter an * (asterisk) in the edit window.

Zoom. If you want to view the values of the variable before selecting specific codes, click this button to display the Values/Stats dialog box to browse through a table of sorted variable values (all values are shown regardless of any currently specified case selection conditions).

Select All. This button is available when you have more than one variable listed in this dialog box. If you want to automatically enter all of the codes for each of the variables listed (taking into account any case selection conditions), click the Select All button. You can also select all codes for each variable by clicking the OK button before entering any codes or clicking any other buttons.