View source: R/apollo_classAlloc.R
| apollo_classAlloc | R Documentation |
Calculates class allocation probabilities for a Latent Class model using a Multinomial Logit model and can also perform other operations based on the value of the functionality argument.
apollo_classAlloc(classAlloc_settings)
classAlloc_settings |
List of inputs of the MNL model. It should contain the following.
|
The returned object depends on the value of argument functionality, which it fetches from the calling stack (see apollo_validateInputs).
"components": Same as "estimate".
"conditionals": Same as "estimate".
"estimate": List of vector/matrices/arrays with the allocation probabilities for each class.
"gradient": List containing the likelihood and gradient of the model component.
"output": Same as "estimate".
"prediction": Same as "estimate".
"preprocess": Returns a list with pre-processed inputs, based on classAlloc_settings.
"raw": Same as "estimate".
"report": Same as "estimate".
"shares_LL": List with probabilities for each class in an equal shares setting.
"utilities": List of vectors/matrices/arrays. Returns a list with the utilities for all classes in class allocation model.
"validate": Same as "estimate", but it also runs a set of tests to validate the function inputs.
"zero_LL": List with probabilities for each class in an equal shares setting.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.