simulate_choice: Simulate a choice situation

Description Usage Arguments Value

Description

This function simulates a choice situation using a model object and data to predict probabilities.

Usage

 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, ...)

Arguments

model

a Model object or an object in SupportedTransitionModels().

...

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.

Value

a character vector


dymium-org/dymiumCore documentation built on July 18, 2021, 5:10 p.m.