MDCEV with minimum consumption
Posted: 28 Apr 2020, 10:33
Hello,
I was trying to estimate MDCEV with the minConsumption option using Example 11. So, I just added the scalar list with 0 durations (for a start), and the additional line in mdcev_settings:
minConsumption = list(dropOff = 0,
work = 0,
school = 0,
shopping = 0,
privBusiness = 0,
petrol = 0,
leisure = 0,
vacation = 0,
exercise = 0,
home = 0,
travel = 0,
other = 0)
### Define settings for MDCEV model
mdcev_settings <- list(alternatives = alternatives,
avail = avail,
continuousChoice = continuousChoice,
V = V,
alpha = alpha,
gamma = gamma,
sigma = sigma,
cost = cost,
budget = budget,
minConsumption = minConsumption)
The following error occurs:
Error in apollo_mdcev(mdcev_settings, functionality) :
'minConsumption' for model component "MDCEV", if included, must be a list of numeric scalars or vectors (each with as many elelemnts as observations).
Am I missing something here, or could there indeed be a problem?
Thanks in advance.
Baiba
I was trying to estimate MDCEV with the minConsumption option using Example 11. So, I just added the scalar list with 0 durations (for a start), and the additional line in mdcev_settings:
minConsumption = list(dropOff = 0,
work = 0,
school = 0,
shopping = 0,
privBusiness = 0,
petrol = 0,
leisure = 0,
vacation = 0,
exercise = 0,
home = 0,
travel = 0,
other = 0)
### Define settings for MDCEV model
mdcev_settings <- list(alternatives = alternatives,
avail = avail,
continuousChoice = continuousChoice,
V = V,
alpha = alpha,
gamma = gamma,
sigma = sigma,
cost = cost,
budget = budget,
minConsumption = minConsumption)
The following error occurs:
Error in apollo_mdcev(mdcev_settings, functionality) :
'minConsumption' for model component "MDCEV", if included, must be a list of numeric scalars or vectors (each with as many elelemnts as observations).
Am I missing something here, or could there indeed be a problem?
Thanks in advance.
Baiba