Data Analysis with IBM SPSS Statistics
上QQ阅读APP看书,第一时间看更新

Variable properties - role

In the Variable View, use the Role cell to specify the level of measurement for the variable. Click in the Role cell to activate a drop-bar list with six elements and select one:

  • Input: The variable will be used as an input.
  • Target: The variable will be used as a target variable.
  • Both: The variable will be used as both input and target.
  • None: The variable has no role assignment.
  • Partition: The variable will be used to partition the data into separate samples for training, testing, and validation.
  • Split: Included for compatibility with IBM SPSS modeler. Variables with this role are not used as split file variables in IBM SPSS Statistics.
Dialog boxes for some procedures support predefined roles that can be used to select variables for analysis. If the dialog box supports these roles, variables that meet the role requirements will automatically populate the appropriate variable list. By default, the role of all variables is set to Input, which means that all of the variables are available for analysis.

The equivalent syntax is the VARIABLE ROLE command.