Introduction
Creates a new variable containing predicted values for each case in the data from a machine learning model. Observations with missing values in the predictors are predicted as NA.
Requirements
A predictive model such as regression, linear discriminant, random forest or any other machine learning model generated in Q.
Method
To save the predicted values:
- Select the machine learning model output.
- Select Create > Classifier > Save Variable(s) > Predicted Values.
Example
A table of categorical predictions is generated:
Technical details
Uses the predict method from R. Unlike the defaults in most R packages, this implementation assigns predicted values for observations not in the estimation sample. Categorical variables are predicted as discrete.
Next
Comments
0 comments
Article is closed for comments.