Description Usage Arguments Value
This function simulates a choice situation using a model object and data to predict probabilities.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | simulate_choice(model, ...)
## S3 method for class 'train'
simulate_choice(model, newdata, target = NULL, ...)
## S3 method for class 'list'
simulate_choice(model, newdata, target = NULL, ...)
## S3 method for class 'glm'
simulate_choice(model, newdata, target = NULL, ...)
## S3 method for class 'Model'
simulate_choice(model, newdata, target = NULL, ...)
## S3 method for class 'WrappedModel'
simulate_choice(model, newdata, target = NULL, ...)
## S3 method for class 'data.frame'
simulate_choice(model, target = NULL, ...)
|
model |
a Model object or an object in |
... |
dots |
newdata |
a data.frame object to use for making prediction. |
target |
a Target object or a named list this is for aligning the simulation outcome to an external target. |
a character vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.