Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Obtaining random intercept for each group from xtlogit or xtmelogit


From   Phil Clayton <[email protected]>
To   [email protected]
Subject   Re: st: Obtaining random intercept for each group from xtlogit or xtmelogit
Date   Wed, 20 Jul 2011 23:57:10 +1000

After xtmelogit try:
predict rintercept, reffects

Phil

On 20/07/2011, at 11:10 PM, Orian Brook wrote:

> Dear all
> 
> I'm have data on a binary outcome which is organised as respondents within
> countries. What I really want to know is the random intercept for each
> country, but I can't see how to get it - could anyone point me? (I was
> previously not using a multilevel approach and had a dummy variable for each
> country, to get the country effect - but I realised I really should try a
> multilevel approach).
> 
> The syntax I'm using is 
> 
> xi:xtmelogit QA4_PERF VD8 i.D10 VD11 i.C14 i.QB3 i.D25 || COUNTRY:
> xi:xtlogit QA4_PERF VD8 i.D10 VD11 i.C14 i.QB3 i.D25, i(COUNTRY)
> 
> They get the same log-likelihood results, though naturally xtmelogit takes
> longer to run, I realise it has other options available.
> Thanks for any advice.
> 
> 
> 
> *
> *   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/


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index