Page 1 of 1

Maximising iterations

Posted: Tue Dec 10, 2013 10:58 am
by Eagg1986
Hi there,
I am running three-level growth curve models and receiving the error message "WARNING: IGLS algorithm failed to converge. Increase the number of iterations. See the maxiterations() option."

I'm not sure why this is happening because I have set the maximum iterations to be 16000 using the syntax "set maxiter 16000,perm" at the start of my do-file but my models are all stopping after 20 iterations.

I know that I can specify the number of iterations for each model using the maxiter(#) subcommand but I'd like to be able to specify the iterations at the start to cover all the models in my do-file.

Many thanks,
Elisabeth

Re: Maximising iterations

Posted: Tue Dec 10, 2013 11:12 am
by ChrisCharlton
We currently don't use the Stata maxiter setting in runmlwin, so unfortunately what you are trying to do won't work. Probably the closest you can get would be to store the desired maximum in a local and then put that into all the runmlwin subcommands in your file. Alternatively you could write a short command of your own that calls runmlwin with this setting and then use that instead.

Re: Maximising iterations

Posted: Tue Dec 10, 2013 3:20 pm
by Eagg1986
Hi Chris,
Thanks for your response, that's cleared up my confusion,
Elisabeth