estimating multiple random slopes
Posted: Tue Mar 06, 2012 2:27 pm
Dear runmlwin users,
I have recently switched from using gllamm to runmlwin to fit multinomial ordered logit models. Whilst I am able to fit a model with one random slope at level 2 using runmlwin, once I try to fit more than one random slope, I get error messages from MLwiN.
My code in stata is as follows:
. runmlwin ols_imprel constant (female age relgroupdum2 relgroupdum3 relgroupdum4, ///
> contrast(1/3)), ///
> level2(lacode2: constant relgroupdum2 relgroupdum3 relgroupdum4) ///
> level1(caseid) discrete(distribution(multinomial) ///
> link(ologit) denom(caseid) base(3) mql1)
The error I get in MLwiN appears in the 2nd pause when the macro is running and says:
"error while obeying batch file C:\Program Files (x86)\MLwiN\v2.25\multicat\ pre at line number 69: calc 'Pi'=1/1+expo(-('H'))).
2090 numeric errors in calculate command, first 20 affected entries listed. Affected entries replaced with system missing.. See output window for details."
I don't know what this error means or what I should do to correct it.
I hope someone can help.
Thanks very much in advance.
Meena
I have recently switched from using gllamm to runmlwin to fit multinomial ordered logit models. Whilst I am able to fit a model with one random slope at level 2 using runmlwin, once I try to fit more than one random slope, I get error messages from MLwiN.
My code in stata is as follows:
. runmlwin ols_imprel constant (female age relgroupdum2 relgroupdum3 relgroupdum4, ///
> contrast(1/3)), ///
> level2(lacode2: constant relgroupdum2 relgroupdum3 relgroupdum4) ///
> level1(caseid) discrete(distribution(multinomial) ///
> link(ologit) denom(caseid) base(3) mql1)
The error I get in MLwiN appears in the 2nd pause when the macro is running and says:
"error while obeying batch file C:\Program Files (x86)\MLwiN\v2.25\multicat\ pre at line number 69: calc 'Pi'=1/1+expo(-('H'))).
2090 numeric errors in calculate command, first 20 affected entries listed. Affected entries replaced with system missing.. See output window for details."
I don't know what this error means or what I should do to correct it.
I hope someone can help.
Thanks very much in advance.
Meena