Calculates MDCNEV likelihoods with an outside good.
Calculates the likelihood of a Multiple Discrete Continuous Nested Extreme Value (MDCNEV) model with an outside good.
apollo_mdcnev(mdcnev_settings, functionality)
mdcnev_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 observed consumption for each observation.
"prediction"
: A matrix with one row per observation, and columns indicating means and s.d. of continuous and discrete predicted consumptions.
"validate"
: Same as "estimate"
, but it also runs a set of tests to validate the function inputs.
"zero_LL"
: Not implemented. Returns a vector of NA with as many elements as observations.
"conditionals"
: Same as "estimate"
"output"
: Same as "estimate"
but also writes summary of input data to internal Apollo log.
"raw"
: Same as "estimate"
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.