Random effects with multilevel binomial data
Posted: Thu Jun 18, 2015 11:45 am
I noted when reading the runmlwin guide (p18) that when fitting a multilevel Bernoulli model no individual level error appears in the linear predictor. I was wondering if someone could clarify why this was the case. When I try to fit a simple multilevel logistic model using runmlwin looking at level 1 residuals e.g.
runmlwin smoke cons age, level2(pracid: cons) level1(patient_id:, residuals(stand)) discrete(distribution(binomial) link(logit) denominator(cons) pql2)
I get an error message:
option rpxvars() required.
However if I fit the model directly in Mlwin, I seem to be able to specify and get output for level 1 (as well as level 2) residuals. I can also get e.g. anscombe residuals if fitting the same model using xtmelogit in stata, and these appear to be calculated at an individual level. I am hence unclear as to how to reconcile these facts. Thank you for any insight you can offer.
runmlwin smoke cons age, level2(pracid: cons) level1(patient_id:, residuals(stand)) discrete(distribution(binomial) link(logit) denominator(cons) pql2)
I get an error message:
option rpxvars() required.
However if I fit the model directly in Mlwin, I seem to be able to specify and get output for level 1 (as well as level 2) residuals. I can also get e.g. anscombe residuals if fitting the same model using xtmelogit in stata, and these appear to be calculated at an individual level. I am hence unclear as to how to reconcile these facts. Thank you for any insight you can offer.