Codebook Output Tab
The Output tab controls the variable information included for each variable and multiple response set, the order in which the variables and multiple response sets are displayed, and the contents of the optional file information table.
Variable Information
This controls the dictionary information displayed for each variable.
Position. An integer that represents the position of the variable in file order. This is not available for multiple response sets.
Label. The descriptive label associated with the variable or multiple response set.
Type. Fundamental data type. This is either Numeric, String, or Multiple Response Set.
Format. The display format for the variable, such as A4, F8.2, or DATE11. This is not available for multiple response sets.
Measurement level. The possible values are Nominal, Ordinal, Scale, and Unknown. The value displayed is the measurement level stored in the dictionary and is not affected by any temporary measurement level override specified by changing the measurement level in the source variable list on the Variables tab. This is not available for multiple response sets.
Note: The measurement level for numeric variables may be "unknown" prior to the first data pass when the measurement level has not been explicitly set, such as data read from an external source or newly created variables. See the topic Variable measurement level for more information.
Role. Some dialogs support the ability to pre-select variables for analysis based on defined roles. See the topic Roles for more information.
Value labels. Descriptive labels associated with specific data values. See the topic Value labels for more information.
- If Count or Percent is selected on the Statistics tab, defined value labels are included in the output even if you don't select Value labels here.
- For multiple dichotomy sets, "value labels" are either the variable labels for the elementary variables in the set or the labels of counted values, depending on how the set is defined. See the topic Multiple Response Sets for more information.
Missing values. User-defined missing values. See the topic Missing values for more information. If Count or Percent is selected on the Statistics tab, defined value labels are included in the output even if you don't select Missing values here. This is not available for multiple response sets.
Custom attributes. User-defined custom variable attributes. Output includes both the names and values for any custom variable attributes associated with each variable. See the topic Creating Custom Variable Attributes for more information. This is not available for multiple response sets.
Reserved attributes. Reserved system variable attributes. You can display system attributes, but you should not alter them. System attribute names start with a dollar sign ($) . Non-display attributes, with names that begin with either "@" or "$@", are not included. Output includes both the names and values for any system attributes associated with each variable. This is not available for multiple response sets.
File Information
The optional file information table can include any of the following file attributes:
File name. Name of the IBM® SPSS® Statistics data file. If the dataset has never been saved in IBM SPSS Statistics format, then there is no data file name. (If there is no file name displayed in the title bar of the Data Editor window, then the active dataset does not have a file name.)
Location. Directory (folder) location of the IBM SPSS Statistics data file. If the dataset has never been saved in IBM SPSS Statistics format, then there is no location.
Number of cases. Number of cases in the active dataset. This is the total number of cases, including any cases that may be excluded from summary statistics due to filter conditions.
Label. This is the file label (if any) defined by the FILE
LABEL
command.
Documents. Data file document text. See the topic Data file comments for more information.
Weight status. If weighting is on, the name of the weight variable is displayed. See the topic Weight cases for more information.
Custom attributes. User-defined custom data file attributes.
Data file attributes defined with the DATAFILE ATTRIBUTE
command.
Reserved attributes. Reserved system data file attributes. You can display system attributes, but you should not alter them. System attribute names start with a dollar sign ($) . Non-display attributes, with names that begin with either "@" or "$@", are not included. Output includes both the names and values for any system data file attributes.
Variable Display Order
The following alternatives are available for controlling the order in which variables and multiple response sets are displayed.
Alphabetical. Alphabetic order by variable name.
File. The order in which variables appear in the dataset (the order in which they are displayed in the Data Editor). In ascending order, multiple response sets are displayed last, after all selected variables.
Measurement level. Sort by measurement level. This creates four sorting groups: nominal, ordinal, scale, and unknown. Multiple response sets are treated as nominal.
Note: The measurement level for numeric variables may be "unknown" prior to the first data pass when the measurement level has not been explicitly set, such as data read from an external source or newly created variables.
Variable list. The order in which variables and multiple response sets appear in the selected variables list on the Variables tab.
Custom attribute name. The list of sort order options also includes the names of any user-defined custom variable attributes. In ascending order, variables that don't have the attribute sort to the top, followed by variables that have the attribute but no defined value for the attribute, followed by variables with defined values for the attribute in alphabetic order of the values.
Maximum Number of Categories
If the output includes value labels, counts, or percents for each unique value, you can suppress this information from the table if the number of values exceeds the specified value. By default, this information is suppressed if the number of unique values for the variable exceeds 200.
To Select Codebook Output Options
This feature requires the Statistics Base option.
- From the menus choose:
- Click the Output tab.