apollo_classAlloc {apollo} | R Documentation |
Calculates class allocation probabilities for a Latent Class model
Description
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.
Usage
apollo_classAlloc(classAlloc_settings)
Arguments
classAlloc_settings |
List of inputs of the MNL model. It should contain the following.
|
Value
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 onclassAlloc_settings
. -
"raw"
: Same as"estimate"
. -
"report"
: Same as"estimate"
. -
"shares_LL"
: List with probabilities for each class in an equal shares setting. -
"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.