Overview (LINEAR command)

Linear models predict a continuous target based on linear relationships between the target and one or more predictors.

Linear models are relatively simple and give an easily interpreted mathematical formula for scoring. The properties of these models are well understood and are typically very fast to train.

Options

Ensemble models. In addition to creating a "standard" linear model, you can use ensembles to improve model accuracy (boosting), improve model stability (bagging), or create a model for very large datasets.

Model selection. All fields can be entered into the model together, or forward stepwise or best subsets model selection can be used to choose the best fields.

Output. The procedure produces a model viewer object containing tables and charts for assessing the quality of the model; also you can save predicted values to the active dataset and the model to a file in PMML format.

Basic Specification

The basic specification is the LINEAR command and FIELDS subcommand with TARGET and INPUTS keywords. There must be a single continuous target and at least one input.

Note: Since measurement level can affect the results, if any variables (fields) have an unknown measurement level, an initial data pass will be performed to determine default measurement level for any variables with an unknown measurement level. For information on the criteria used to determine default measurement level, see SET SCALEMIN.

Syntax Rules

Limitations