Dear Prof Bierlaire,
I have been trying to run ordered logit and hybrid choice model in pythonbiogeme (python scripts attached). Its been one week since I have been using biogeme and I am pretty new to the software.
I am following Swiss metro examples for both ordered logit and latent class hybrid choice model, but I am getting following errors in both the models:
- /usr/local/bin/pythonbiogeme: line 52: 6131 Aborted (core dumped) "${bindir}/pybiogeme${versionsuffix}" "$p" "$d"
This error also adds a warning as
Warning: Index 6 not valid in expression Elem({1: ( 1 ) - ( ( 1 ) / ( 1 + exp(( -(( ( B_gender * gender + B_age * age + B_emptype * emptype + B_income * income + B_telework * TeleworkFreq + B_flex * ScheduleFlex + B_smartphone * Smartphone + B_radio * Radio + B_tv * TV + B_disability * Disability + B_hhsize * HHSize + B_hhincome * HHIncome + B_hhcars * HHCars + B_hhcarshist10 * HHCarsHist10 + B_hhcarshistused10 * HHCarsHistUsed10 + B_purfreq * CarPurchFreq + B_carnext * CarNext3 + B_WTP * WTP + B_WTPMaint * WTPMaint + B_socTies * NumSocialTies + B_commFreq * CommFreq ) - tau1 ) - ( 0 )) ) / ( 1 )) ) )},{2: ( ( 1 ) / ( 1 + exp(( -(( ( B_gender * gender + B_age * age + B_emptype * emptype + B_income * income + B_telework * TeleworkFreq + B_flex * ScheduleFlex + B_smartphone * Smartphone + B_radio * Radio + B_tv * TV + B_disability * Disability + B_hhsize * HHSize + B_hhincome * HHIncome + B_hhcars * HHCars + B_hhcarshist10 * HHCarsHist10 + B_hhcarshistused10 * HHCarsHistUsed10 + B_purfreq * CarPurchFreq + B_carnext * CarNext3 + B_WTP * WTP + B_WTPMaint * WTPMaint + B_socTies * NumSocialTies + B_commFreq * CommFreq ) - tau1 ) - ( 0 )) ) / ( 1 )) ) ) - ( ( 1 ) / ( 1 + exp(( -(( ( B_gender * gender + B_age * age + B_emptype * emptype + B_income * income + B_telework * TeleworkFreq + B_flex * ScheduleFlex + B_smartphone * Smartphone + B_radio * Radio + B_tv * TV + B_disability * Disability + B_hhsize * HHSize + B_hhincome * HHIncome + B_hhcars * HHCars + B_hhcarshist10 * HHCarsHist10 + B_hhcarshistused10 * HHCarsHistUsed10 + B_purfreq * CarPurchFreq + B_carnext * CarNext3 + B_WTP * WTP + B_WTPMaint * WTPMaint + B_socTies * NumSocialTies + B_commFreq * CommFreq ) - ( tau1 + delta2 ) ) - ( 0 )) ) / ( 1 )) ) )},{3: ( 1 ) / ( 1 + exp(( -(( ( B_gender * gender + B_age * age + B_emptype * emptype + B_income * income + B_telework * TeleworkFreq + B_flex * ScheduleFlex + B_smartphone * Smartphone + B_radio * Radio + B_tv * TV + B_disability * Disability + B_hhsize * HHSize + B_hhincome * HHIncome + B_hhcars * HHCars + B_hhcarshist10 * HHCarsHist10 + B_hhcarshistused10 * HHCarsHistUsed10 + B_purfreq * CarPurchFreq + B_carnext * CarNext3 + B_WTP * WTP + B_WTPMaint * WTPMaint + B_socTies * NumSocialTies + B_commFreq * CommFreq ) - ( tau1 + delta2 ) ) - ( 0 )) ) / ( 1 )) )}[CHOICE][02.
2. Warning: Error: There is a numerical problem with the initial log likelihood.
It typically happens when one observation is associated with a very low probability,
so that taking the log generates a very high number.
Modify the starting values of the parameters.
You may want to use the SIMULATE feature of pythonbiogeme to identify the cause of the problem.
I have already tried increasing the starting value of sigma and other parameters, but it is not working.
Please assist me in correcting this error.
Thank you.
Ishant Sharma