I'm trying to estimate a model where HB == TRUE and one of the parameters distributes JSB between 0 and 1. Unfortunately, an error message keeps popping up.
Here's a part of a reproducible example using apollo_modeChoiceData:
Code: Select all
[database, etc.]
apollo_beta=c(asc_car = 0,
asc_bus = 0,
asc_air = 0,
asc_rail = 0.1,
b_tt = 0,
b_cost = 0,
b_access = 0)
distributions=c(asc_car = 'F',
asc_bus = 'N',
asc_air = 'N',
asc_rail = 'JSB',
b_tt = 'N',
b_cost = 'N',
b_access = 'N')
maxcoef = c(NA, NA, NA, 1.0, NA, NA, NA)
mincoef = c(NA, NA, NA, 0.0, NA, NA, NA)
apollo_HB = list(
hbDist = distributions,
gNCREP = 50000,
gNEREP = 50000,
gINFOSKIP = 300,
gMAXCOEF = maxcoef,
gMINCOEF = mincoef)
[apollo_fixed, apollo_inputs, apollo_probabilities, etc.]
Code: Select all
Error in apollo_validate(mnl_settings, modelType, functionality, apollo_inputs) :
Some utilities for model component "model" contain values that are not finite numbers!
Thanks for your help!