Hi all,
I am trying to create a Log binomial mixed effect regression model to calculate prevalence ratio instead of odds ratio.
However the meglm does not work with the family(binomial) and link (log) function (https://bookdown.org/rwnahhas/RMPH/b...-binomial.html)
Here is the code: meglm result ib3.quintile i.Sex age || district :, family(binary) link (log) eform and this is the message I get: link log is not allowed with family bernoulli r(198);
When using the exact same glm command without a random effect everything works perfectly (https://stats.oarc.ucla.edu/stata/fa...ohort-studies/).
The same topic is discussed here: https://www.statalist.org/forums/for...binomial-model
Any help really appreciated!
Thanks!
I am trying to create a Log binomial mixed effect regression model to calculate prevalence ratio instead of odds ratio.
However the meglm does not work with the family(binomial) and link (log) function (https://bookdown.org/rwnahhas/RMPH/b...-binomial.html)
Here is the code: meglm result ib3.quintile i.Sex age || district :, family(binary) link (log) eform and this is the message I get: link log is not allowed with family bernoulli r(198);
When using the exact same glm command without a random effect everything works perfectly (https://stats.oarc.ucla.edu/stata/fa...ohort-studies/).
The same topic is discussed here: https://www.statalist.org/forums/for...binomial-model
Any help really appreciated!
Thanks!
Comment