Description Usage Arguments Value Examples
Predict choices given a choice set and a parameterized choice model.
1 | discounting.model.predict(choices, model, parameters)
|
choices |
Standard choices data frame. |
model |
exponential |
parameters |
model parameters |
A new data.frame with choices filled in.
1 2 3 4 5 6 7 | parameters <- list('a' = 1, 'delta' = 0.9)
choices <- discounting.model.simulate(discounting.model.generate.choice.set(10, 10:20, 0:5, 10:30, 0:10),
'exponential',
parameters)
discounting.model.predict(choices, 'exponential', parameters)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.