apollo_mdcev {apollo} | R Documentation |
Calculates the likelihood of a Multiple Discrete Continuous Extreme Value (MDCEV) model.
apollo_mdcev(mdcev_settings, functionality)
mdcev_settings |
List of settings for the MDCEV model. It must include 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": A matrix with one row per observation, and means and s.d. of predicted consumptions.
"validate": Boolean. Returns TRUE if all tests are passed.
"zero_LL": Not applicable.
"conditionals": Same as "prediction".
"output": Same as "estimate" but also writes summary of choices into temporary file (later read by apollo_modelOutput
).
"raw": Same as "prediction".