Maximising iterations

Welcome to the forum for runmlwin users. Feel free to post your question about runmlwin here. The Centre for Multilevel Modelling take no responsibility for the accuracy of these posts, we are unable to monitor them closely. Do go ahead and post your question and thank you in advance if you find the time to post any answers!

Go to runmlwin: Running MLwiN from within Stata >> http://www.bristol.ac.uk/cmm/software/runmlwin/
Post Reply
Eagg1986
Posts: 14
Joined: Fri Apr 05, 2013 3:24 pm

Maximising iterations

Post 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
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: Maximising iterations

Post 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.
Eagg1986
Posts: 14
Joined: Fri Apr 05, 2013 3:24 pm

Re: Maximising iterations

Post by Eagg1986 »

Hi Chris,
Thanks for your response, that's cleared up my confusion,
Elisabeth
Post Reply