Page 1 of 1

MDCEV with minimum consumption

Posted: 28 Apr 2020, 10:33
by BaibaP
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

Re: MDCEV with minimum consumption

Posted: 28 Apr 2020, 21:56
by stephanehess
Dear Baiba

this was indeed a bug. We've fixed it in the development version (0.1.1) which you can download from the Apollo website

Thanks for reporting it

Stephane

Re: MDCEV with minimum consumption

Posted: 29 Apr 2020, 09:13
by BaibaP
Thanks for attending to this!

Baiba