Model Variables (TREE command)
The command name TREE is followed by the dependent variable, the keyword BY, and one or more independent variables.
Dependent Variable
The dependent (target) variable must be the
first specification on the TREE command.
- Only one dependent variable can be specified.
- The dependent variable cannot be
the
WEIGHTvariable.
Independent Variables
You can specify one or more independent (predictor) variables.
-
ALLandTOcan be used in the independent variable list.ALLrepresents all variables in the active dataset.TOrefers to a range of variables in the active dataset. - In general, if the independent variable list refers
to the
WEIGHTvariable or a variable that is used elsewhere in the tree specification (e.g., dependent variable or cell weight variable), the variable is not used as an independent variable. The exception is that scale variables used both in the independent variable list and theINTERVALsubcommand are not dropped from the independent variable list. - Repeated instances of the same
independent variable are filtered out of the list. For example,
a b a c ais equivalent toa b c. Assuming that the active dataset contains variables a, b, and c,a ALLis also equivalent toa b c.