Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: gllamm versus xtmelogit?


From   Anders Alexandersson <andersalex@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: gllamm versus xtmelogit?
Date   Sun, 27 Jun 2010 09:38:39 -0400

model is a random intercept model for a continuous outcome but you
wanted a random slope model for a logistic outcome. You need something
more similar to this (not tested):

. gen cons = 1
. eq slope: perblack_1980
. gllamm infdeath black, i(countynumber) eqs(inter slope) nrf(2)
family(binomial) link(logit)

Please use a Stata dataset that we can all access if you need more help.

Anders Alexandersson
andersalex@gmail.com

Jessie Bishop-royse <jessibishoproyse@yahoo.com> compared these two models:
. gllamm infdeath black perblack_1980, i(countynumber) iter(20)
and
. xtmelogit infdeath black || countynumber: perblack_1980
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index