Page 1 of 1

max iteration

Posted: 23 Sep 2020, 19:17
by houria
Hi
I've got an error because the iterations for esmitating the initial value in my MNL model didn't go farther than 200 which is the apollo default.
How can I increase this default? is it possible?

"Why does my estimation fail, saying the maximum number of iterations has been reached?
The default number of iterations for estimation is set to 200. This can be increased in estimate_settings$maxIterations. In general however, if a model has not converged after 200 iterations, this could be a sign of problems with the model. Inspecting the iterations file produced during estimation can help diagnose if there is a problem or if more iterations are required."
It's a part of manual but I don't know what can I do with that.

Re: max iteration

Posted: 23 Sep 2020, 21:05
by stephanehess
Hi

as mentioned in the manual, you can increase this by changing estimate_settings$maxIterations

So e.g.

model = apollo_estimate(apollo_beta, apollo_fixed, apollo_probabilities, apollo_inputs, estimate_settings=list(maxIterations=300))

Re: max iteration

Posted: 24 Sep 2020, 03:55
by houria
thanks a lot. I did it after you said and I'm waiting for the results.