option level2() not allowed error
Posted: Thu Mar 08, 2012 10:13 am
Dear runmlwin users,
I am having what I think is a very simple problem to solve, but I have been stuck on this for the last few days so I am asking for help.
I can run this random intercept model ok and get output to stata:
runmlwin ols_imprel constant (female age mardum2 mardum3 mardum4 incomedum2 ///
incomedum3 incomedum4 incomedum5 incomedum6 incomedum7 incomedum8 ///
highqualdum4 highqualdum3 highqualdum2 highqualdum1 socdum2 socdum3 , contrast(1/3)), ///
level2(lacode2: (constant , contrast (1/3))) ///
level1(caseid) discrete(distribution(multinomial) ///
link(ologit) denom(caseid) base(3) mql1)
The null model also produces output, and the step by step models prior to the one above.
But I get errors as soon as I try to add more independent variables in the next stage of the model building, like this:
runmlwin ols_imprel constant (female age mardum2 mardum3 mardum4 incomedum2 ///
incomedum3 incomedum4 incomedum5 incomedum6 incomedum7 incomedum8 ///
highqualdum4 highqualdum3 highqualdum2 highqualdum1 socdum2 socdum3 ///
ethdum2 ethdum3 ethdum4 , contrast(1/3)), ///
level2(lacode2: (constant , contrast (1/3))) ///
level1(caseid) discrete(distribution(multinomial) ///
link(ologit) denom(caseid) base(3) mql1)
I get the error "option level2() not allowed"
This seems to happen whichever extra independent variables I add in. I can't figure out why in the top model runmlwin is happy with the commas and options, but in the lower model it is not. All I think I have done differently in the lower model is add in three dummies.
Thanks very much for your help,
Meena
I am having what I think is a very simple problem to solve, but I have been stuck on this for the last few days so I am asking for help.
I can run this random intercept model ok and get output to stata:
runmlwin ols_imprel constant (female age mardum2 mardum3 mardum4 incomedum2 ///
incomedum3 incomedum4 incomedum5 incomedum6 incomedum7 incomedum8 ///
highqualdum4 highqualdum3 highqualdum2 highqualdum1 socdum2 socdum3 , contrast(1/3)), ///
level2(lacode2: (constant , contrast (1/3))) ///
level1(caseid) discrete(distribution(multinomial) ///
link(ologit) denom(caseid) base(3) mql1)
The null model also produces output, and the step by step models prior to the one above.
But I get errors as soon as I try to add more independent variables in the next stage of the model building, like this:
runmlwin ols_imprel constant (female age mardum2 mardum3 mardum4 incomedum2 ///
incomedum3 incomedum4 incomedum5 incomedum6 incomedum7 incomedum8 ///
highqualdum4 highqualdum3 highqualdum2 highqualdum1 socdum2 socdum3 ///
ethdum2 ethdum3 ethdum4 , contrast(1/3)), ///
level2(lacode2: (constant , contrast (1/3))) ///
level1(caseid) discrete(distribution(multinomial) ///
link(ologit) denom(caseid) base(3) mql1)
I get the error "option level2() not allowed"
This seems to happen whichever extra independent variables I add in. I can't figure out why in the top model runmlwin is happy with the commas and options, but in the lower model it is not. All I think I have done differently in the lower model is add in three dummies.
Thanks very much for your help,
Meena