Machine Learning - Save Variable(s) - Probabilities of Each Response
Jump to navigation
Jump to search
Extensions
Q Technical Reference
Q Technical Reference
Q Technical Reference > Setting Up Data > Creating New Variables
Q Technical Reference > Updating and Automation > Automation Online Library
Q Technical Reference > Updating and Automation > JavaScript > QScript > QScript Examples Library > QScript Online Library
R Online Library
User Interface > Create Classifier
User Interface > Create Machine Learning
Creates new variables containing predicted probabilities of each response from a machine learning model or ensemble .
Example
A table of probabilities of a binary outcome variable.
Technical details
Uses the Probabilities method from the R package flipData. Unlike the defaults in most R packages, this implementation assigns probabilities for observations not in the estimation sample.
Code
includeWeb('QScript R Output Functions');
saveVariables('Probabilities', 'Machine Learning, MachineLearningEnsemble or Regression',
'flipData::Probabilities(', ')', null, null, 'prob',
['MachineLearning', 'MachineLearningEnsemble', 'Regression']);
Extensions
Q Technical Reference
Q Technical Reference
Q Technical Reference > Setting Up Data > Creating New Variables
Q Technical Reference > Updating and Automation > Automation Online Library
Q Technical Reference > Updating and Automation > JavaScript > QScript > QScript Examples Library > QScript Online Library
R Online Library
User Interface > Create Classifier
User Interface > Create Machine Learning