This article describes how to save variables containing predicted values for each case in the data from a Machine Learning model (e.g., from Machine Learning - Random Forest). Observations with missing values in the predictors are predicted as NA. The below example shows the predicted value from the model on a respondent level.
- A Machine Learning output (e.g., CART, Support Vector Machine, Linear Discrimination Analysis, etc.)
- Select the Machine Learning output.
- Go to the object inspector > Inputs > SAVE VARIABLE(S) > Prediction Values, or go to the Anything menu > Advanced Analysis > Machine Learning > Save Variable(s) > Prediction Values.