Variable types
The Chart Builder distinguishes the different measurement levels and handles the variables differently depending on the measurement level. Furthermore, the Chart Builder can graph multiple response sets, which it treats as a categorical variable. An icon next to each variable in the Variables list identifies the variable type.
Numeric | String | Date | Time | |
---|---|---|---|---|
Scale (Continuous) | ![]() |
n/a | ![]() |
![]() |
Ordinal | ![]() |
![]() |
![]() |
![]() |
Nominal |
![]() |
![]() |
![]() |
![]() |
Multiple response set type | Icon |
---|---|
Multiple response set, multiple categories |
![]() |
Multiple response set, multiple dichotomies |
![]() |
Measurement level
A variable's measurement level is important when you create a chart. Following is a description of the measurement levels. You can temporarily change the measurement level in the Chart Builder by right-clicking the variable in the Variables list and choosing an option. You can also permanently change a variable's measurement level in the Variable View of the Data Editor. See the topic Variable measurement level for more information.
Categorical. Data with a limited number of distinct values or categories (for example, gender or religion). Categorical variables can be string (alphanumeric) or numeric variables that use numeric codes to represent categories (for example, 0 = male and 1 = female). Also referred to as qualitative data. Categorical variables can be either nominal or ordinal
- Nominal. A variable can be treated as nominal when its values represent categories with no intrinsic ranking (for example, the department of the company in which an employee works). Examples of nominal variables include region, postal code, and religious affiliation.
- Ordinal. A variable can be treated as ordinal when its values represent categories with some intrinsic ranking (for example, levels of service satisfaction from highly dissatisfied to highly satisfied). Examples of ordinal variables include attitude scores representing degree of satisfaction or confidence and preference rating scores.
Scale. Data measured on an interval or ratio scale, where the data values indicate both the order of values and the distance between values. For example, a salary of $72,195 is higher than a salary of $52,398, and the distance between the two values is $19,797. Also referred to as quantitative or continuous data.
Categorical variables define categories in the chart, typically to draw separate graphic elements or to group graphic elements. Scale variables are often summarized within categories of categorical variables. For example, a default chart of income for gender categories would display the mean income for males and the mean income for females. The raw values for scale variables can also be plotted, as in a scatterplot. For example, a scatterplot may show the current salary and beginning salary for each case. A categorical variable could be used to group the cases by gender.
Defined categories and labels
A variable's defined categories are displayed in the Categories list and on the canvas when you use the categorical variable in a chart. If the variable has no defined categories, the canvas pane will display two placeholder categories: Category 1 and Category 2.
The defined categories displayed in the Chart Builder are based on value labels, descriptive labels assigned to different data values (for example, numeric values of 0 and 1, with value labels of male and female). You can define value labels in Variable View of the Data Editor or with Define Variable Properties on the Data menu in the Data Editor window.
Multiple Response Sets
Custom Tables and the Chart Builder support a special kind of "variable" called a multiple response set. Multiple response sets aren't really "variables" in the normal sense. You can't see them in the Data Editor, and other procedures don't recognize them. Multiple response sets use multiple variables to record responses to questions where the respondent can give more than one answer. Multiple response sets are treated like categorical variables, and most of the things you can do with categorical variables, you can also do with multiple response sets.
Multiple response sets are constructed from multiple variables in the data file. A multiple response set is a special construct within a data file. You can define and save multiple response sets in IBM® SPSS® Statistics data files, but you cannot import or export multiple response sets from/to other file formats. You can copy multiple response sets from other IBM SPSS Statistics data files using Copy Data Properties, which is accessed from the Data menu in the Data Editor window. See the topic Copying Data Properties for more information.