This article describes how to save variables containing predicted values for each case in a Machine Learning model (e.g., a Random Forest). Observations with missing values in the predictors are assigned NA values. The example below shows the model's predicted value at the respondent level.
Requirements
- A Machine Learning output (e.g., CART, Support Vector Machine, Linear Discriminant Analysis, etc.)
Method
- Select the Machine Learning output.
- Go Properties
> Data > Save Variables(s) > Prediction Values.
A new variable with the saved prediction values will appear in the Data Sources tree.
Next
How to Create a Classification And Regression Trees (CART)
How to Run Machine Learning Diagnostics - Prediction-Accuracy Table
How to Run Machine Learning Diagnostics - Table of Discriminant Function Coefficients extension
How to Create an Ensemble of Machine Learning Models
How to Run a Gradient Boosting Machine Learning Model
How to Compare Machine Learning Models
How to Run Machine Learning Linear Discriminant Analysis
How to Save Machine Learning Discrimination Variables
How to Save Machine Learning Probability of Each Response Variable
UPCOMING WEBINAR: From Thousands of Tables To One Clear Story: using AI in survey analysis