apollo_emdc2 {apollo} | R Documentation |
Extended MDC
Description
Calculates the likelihood function of the extended MDC model. Can also predict and validate inputs.
Usage
apollo_emdc2(emdc_settings, functionality = "estimate")
Arguments
emdc_settings |
List of settings for the model. It includes the following.
|
functionality |
Character. Either "validate", "zero_LL", "estimate", "conditionals", "raw", "output" or "prediction" |
Details
This model extends the traditional multiple discrete-continuous (MDC) framework by (i) dropping the need to define a budget, (ii) making the marginal utility of the outside good deterministic, and (iii) including complementarity and substitution in the model formulation. See the following working paper for more details:
Palma, D. & Hess, S. (Working Paper) Some adaptations of Multiple Discrete-Continuous Extreme Value (MDCEV) models for a computationally tractable treatment of complementarity and substitution effects, and reduced influence of budget assumptions
Avilable at: http://stephanehess.me.uk/publications.html
Value
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"