Error while obeying batchfile

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
SoumavaBasu
Posts: 7
Joined: Tue Jan 09, 2018 7:23 pm

Error while obeying batchfile

Post by SoumavaBasu »

Hi,
I am getting an error message: error while obeying batchfile, while running runmlwin command for random coefficient model.
. runmlwin x_out cons age2 age3 gender primary secondary higher notknowedu smoke moreindoorsmoking drink yesdiab dontknowdiab malnrsh seproom less
> crowd morecrowd mostcrowd POORER MIDDLE RICHER RICHEST urban SC ST OBC dontknow nocaste muslim christian otherrel if gender~=. & pwt1~=., level
> 2(group: cons RICHER, weightvar(pwt2)) level1(ind:, weightvar(pwt1)) discrete(distribution(binomial) link(logit) denominator(cons) pql2) maxite
> rations(100) or

The error is showing in MLwiN window.

Any help on this would be most helpful.

Thanks,
Soumava
ChrisCharlton
Posts: 1351
Joined: Mon Oct 19, 2009 10:34 am

Re: Error while obeying batchfile

Post by ChrisCharlton »

Is there any further error text? If it isn't visible in the error message window then you may be able to see it by opening the "command interface" window and clicking the "output" button.
SoumavaBasu
Posts: 7
Joined: Tue Jan 09, 2018 7:23 pm

Re: Error while obeying batchfile

Post by SoumavaBasu »

Hi Chris,
The full error message is long and I am trying to copy it below:

Error while obeying batchfile
C:\Users\Soumava\AppData\Local\Temp\ST_01000007.tmp at line number 1216:
calc 'f~~(h)'='f~(h)'*(1-expo('h'))/1+expo('h'))
284862 numeric errors in calculate command, first 20 affected entries listed.
Affected entries replaced with system missing.
See output window for details.

The output window showed:
->OBEY "c:\Users\Soumava\AppData\Local\Temp\ST_01000007.tmp"
->WSET
->WSET

Thanks,
ChrisCharlton
Posts: 1351
Joined: Mon Oct 19, 2009 10:34 am

Re: Error while obeying batchfile

Post by ChrisCharlton »

This appears to be an estimation error, which may be resolved by providing better starting values. I would suggest building up the model from simpler versions, using the previous one as starting values for the next. For example you could start without the weights, with mql1 instead of pql2 and with fewer variables. This might also help you determine which aspect is causing the problem.
Post Reply