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: Obtaining random intercept for each group from xtlogit or xtmelogit


From   Phil Clayton <philclayton@internode.on.net>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index