predictChoices | R Documentation |
Returns the expected choices for a set of one or more alternatives based on the results from an estimated model.
predictChoices(model, alts, altID, obsID = NULL)
model |
The output of a model estimated model using the |
alts |
A data frame of a set of alternatives for which to predict choices. Each row is an alternative and each column an attribute corresponding to parameter names in the estimated model. |
altID |
The name of the column that identifies each alternative in each set of alternatives. |
obsID |
The name of the column that identifies each set of
alternatives. Required if predicting results for more than one set of
alternatives. Defaults to |
A data frame with the predicted choices for each alternative in
alts
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.