View source: R/model_evaluation.R
compute_choice_probabilities | R Documentation |
This is a helper function for choice_probabilities
and computes
the probit choice probabilities for a single choice situation with J
alternatives.
compute_choice_probabilities(X, alternatives, parameter, ordered = FALSE)
X |
A matrix of covariates with |
alternatives |
A vector with unique integers from |
parameter |
An object of class |
ordered |
A boolean, |
A probability vector of length length(alternatives)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.