apollo_el | R Documentation |
Calculates the probabilities of an Exploded Logit model and can also perform other operations based on the value of the functionality
argument.
apollo_el(el_settings, functionality)
el_settings |
List of inputs of the Exploded Logit model. It shoud contain the following.
|
functionality |
Character. Setting instructing Apollo what processing to apply to the likelihood function. This is in general controlled by the functions that call
|
The function calculates the probability of a ranking as a product of Multinomial Logit models with gradually reducing availability, where scale differences can be allowed for.
The returned object depends on the value of argument functionality
as follows.
"components"
: Same as "estimate"
"conditionals"
: Same as "estimate"
"estimate"
: vector/matrix/array. Returns the probabilities for the chosen alternative for each observation.
"gradient"
: List containing the likelihood and gradient of the model component.
"output"
: Same as "estimate"
but also writes summary of input data to internal Apollo log.
"prediction"
: Not applicable (NA
).
"preprocess"
: Returns a list with pre-processed inputs, based on el_settings
.
"raw"
: Same as "estimate"
"report"
: Choice overview across stages.
"shares_LL"
: Not implemented. Returns a vector of NA with as many elements as observations.
"validate"
: Same as "estimate"
"zero_LL"
: vector/matrix/array. Returns the probability of the chosen alternative when all parameters are zero.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.