Description Usage Arguments Value
View source: R/apollo_classAlloc.R
Calculates probabilities of a Multinomial Logit model.
1 | apollo_classAlloc(classAlloc_settings)
|
classAlloc_settings |
List of inputs of the MNL model. It should contain the following.
|
functionality |
Character. Can take different values depending on desired output.
|
The returned object depends on the value of argument functionality as follows.
"estimate": vector/matrix/array. Returns the probabilities for the chosen alternative for each observation.
"prediction": List of vectors/matrices/arrays. Returns a list with the probabilities for all alternatives, with an extra element for the probability of the chosen alternative.
"validate": Same as "estimate", but it also runs a set of tests to validate the function inputs.
"zero_LL": vector/matrix/array. Returns the probability of the chosen alternative when all parameters are zero.
"conditionals": Same as "estimate"
"output": Same as "estimate" but also writes summary of input data to internal Apollo log.
"raw": Same as "prediction"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.