Problem with 2nd-level variables in ordered multilevel model
Posted: Tue Oct 02, 2012 3:33 pm
Dear runmlwin user forum-Members,
I am trying to fit a two-level ordinal model, but I get problems when I insert the second level variables. I start just including level-one variables (relaxing the parallel assumption for some of them) and the following code runs smoothly.
runmlwin GPhelp_3cat cons female seventyPlus lowEd poorhealth (sixty notmarried midEd retired depression, contrast(1/2)), level2(country: (cons, contrast(1/2))) level1(mergeid) ///
discrete(distribution(multinomial) link(ologit) denominator(cons) basecategory(1)) nopause or
matrix b = e(b)
matrix V = e(V)
runmlwin GPhelp_3cat cons female seventyPlus lowEd poorhealth (sixty notmarried midEd retired depression, contrast(1/2)), level2(country: (cons, contrast(1/2))) level1(mergeid) ///
discrete(distribution(multinomial) link(ologit) denominator(cons) basecategory(1)) mcmc(chain(50000)) initsb(b) initsv(V) nopause or
However, when I also consider two extra variables at the country-level, I get stuck. And I’m not sure what is going on and how to fix this problem. I run the following code (with the additional two country-variables centered_childsuffer and centered_percentageWomenEmployed)
runmlwin GPhelp_3cat cons female seventyPlus lowEd poorhealth centered_childsuffer centered_percentageWomenEmployed (sixty notmarried midEd retired depression, contrast(1/2)),
level2(country: (cons, contrast(1/2))) level1(mergeid) ///
discrete(distribution(multinomial) link(ologit) denominator(cons) basecategory(1)) nopause or
I get the following error message
error while obeying batch file C:\Program Files\MLwiN v2.25\multicat\pre at line number 69: calc 'Pi'=1/(1+expo(-('H')))
1872 numeric errors in calculate command, first 20 affected entries listed. Affected entries replaced with system missing.
WARNING: macro file has aborted, your data may be in a transformed state
Could you please advice what this means and how to fix this?
I would very much appreciate your help and time!
Kind regards,
Giorgio
I am trying to fit a two-level ordinal model, but I get problems when I insert the second level variables. I start just including level-one variables (relaxing the parallel assumption for some of them) and the following code runs smoothly.
runmlwin GPhelp_3cat cons female seventyPlus lowEd poorhealth (sixty notmarried midEd retired depression, contrast(1/2)), level2(country: (cons, contrast(1/2))) level1(mergeid) ///
discrete(distribution(multinomial) link(ologit) denominator(cons) basecategory(1)) nopause or
matrix b = e(b)
matrix V = e(V)
runmlwin GPhelp_3cat cons female seventyPlus lowEd poorhealth (sixty notmarried midEd retired depression, contrast(1/2)), level2(country: (cons, contrast(1/2))) level1(mergeid) ///
discrete(distribution(multinomial) link(ologit) denominator(cons) basecategory(1)) mcmc(chain(50000)) initsb(b) initsv(V) nopause or
However, when I also consider two extra variables at the country-level, I get stuck. And I’m not sure what is going on and how to fix this problem. I run the following code (with the additional two country-variables centered_childsuffer and centered_percentageWomenEmployed)
runmlwin GPhelp_3cat cons female seventyPlus lowEd poorhealth centered_childsuffer centered_percentageWomenEmployed (sixty notmarried midEd retired depression, contrast(1/2)),
level2(country: (cons, contrast(1/2))) level1(mergeid) ///
discrete(distribution(multinomial) link(ologit) denominator(cons) basecategory(1)) nopause or
I get the following error message
error while obeying batch file C:\Program Files\MLwiN v2.25\multicat\pre at line number 69: calc 'Pi'=1/(1+expo(-('H')))
1872 numeric errors in calculate command, first 20 affected entries listed. Affected entries replaced with system missing.
WARNING: macro file has aborted, your data may be in a transformed state
Could you please advice what this means and how to fix this?
I would very much appreciate your help and time!
Kind regards,
Giorgio