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 Logitordered logit).


Running this QScript will produce a new variablevariable, which will appear in your data setdata 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.


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