| choice_probabilities {RprobitB} | R Documentation |
Compute choice probabilities
Description
This function returns the choice probabilities of an RprobitB_fit
object.
Usage
choice_probabilities(x, data = NULL, par_set = mean)
Arguments
x |
An object of class |
data |
Either |
par_set |
Specifying the parameter set for calculation and either
|
Value
A data frame of choice probabilities with choice situations in rows and
alternatives in columns. The first two columns are the decider identifier
"id" and the choice situation identifier "idc".
Examples
data <- simulate_choices(form = choice ~ covariate, N = 10, T = 10, J = 2)
x <- fit_model(data)
choice_probabilities(x)
[Package RprobitB version 1.1.4 Index]