Regression - Save Variable(s) - Probabilities

From Q
Jump to: navigation, search

Creates a new variable containing predicted probabilities of each response from a model (e.g., from Regression - Ordered Logit).

Output

Running this QScript will produce a new variable, which will appear in your data set for use in further analyses.

Technical details

Uses the probabilities method from R. Unlike the defaults in most R packages, this implementation assigns predicted values for observations not in the estimation sample.

Code

includeWeb("QScript R Output Functions");
 
main();
 
function main() {
    saveVariables("Probabilities", "Regression", "flipData::Probabilities(", ")", null);
}