Dear Prof. Berlier,
I need your assistance with an issue I am encountering while estimating a Mixture of logit Model that combines panel data effect.
I receive the error shown below
The norm of the gradient at OFF_PEAK_ASC=0, OFF_PEAK_ASC_S=10, PEAK_ASC=0, PEAK_ASC_S=10 is nan: g=nan, nan, nan, nan
The norm of the gradient at OFF_PEAK_ASC=0, OFF_PEAK_ASC_S=10, PEAK_ASC=0, PEAK_ASC_S=10 is nan: g=nan, nan, nan, nan
Numerical problems in calculating the analytical hessian. Finite differences is tried instead.
The norm of the gradient at OFF_PEAK_ASC=0, OFF_PEAK_ASC_S=10, PEAK_ASC=0, PEAK_ASC_S=10 is nan: g=nan, nan, nan, nan
The norm of the gradient at OFF_PEAK_ASC=1e-07, OFF_PEAK_ASC_S=10, PEAK_ASC=0, PEAK_ASC_S=10 is nan: g=nan, nan, nan, nan
The norm of the gradient at OFF_PEAK_ASC=0, OFF_PEAK_ASC_S=10, PEAK_ASC=0, PEAK_ASC_S=10 is nan: g=nan, nan, nan, nan
The norm of the gradient at OFF_PEAK_ASC=0, OFF_PEAK_ASC_S=10, PEAK_ASC=1e-07, PEAK_ASC_S=10 is nan: g=nan, nan, nan, nan
The norm of the gradient at OFF_PEAK_ASC=0, OFF_PEAK_ASC_S=10, PEAK_ASC=0, PEAK_ASC_S=10 is nan: g=nan, nan, nan, nan
Numerical problems with finite difference hessian as well.
the model includes 3 alternatives and constant parameters.
I tried to estimate the model based on initial Beta values from the MNL model results, also i tried to increase the initial value of the standard deviation parameters, but I received the same error.
the data is not flattened, and i followed this example
https://biogeme.epfl.ch/sphinx/auto_examples/swissmetro/plot_b12_panel.html
Attached my script
Thanks a lot for your help!
Amneh