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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Predicted probability after xtlogit with i option


From   Joerg Luedicke <joerg.luedicke@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Predicted probability after xtlogit with i option
Date   Wed, 29 Jun 2011 13:59:04 -0400

I am not 100% sure if its doable with -xtlogit-, but you could use -xtmelogit-
for which the default prediction (-mu-) takes the random effect into account
(see  -help xtmelogit postestimation-). (Using the option -fixedonly- with
-predict- after -xtmelogit- should replicate your predictions from -xtlogit-).

J.


On Wed, Jun 29, 2011 at 1:29 PM, Urmi Bhattacharya <ub3@indiana.edu> wrote:
> Hello Statalisters,
>
> I am running the following xtlogit model
>
> xtlogit school_left childage i.childfemale i.urban i.scstobc
> i.casteother i.dadp i.dadm i.momp i.momm wagep wage5 wage8 wage9 distp
> distm disth percapcons durat1 durat2 durat3 durat4 durat5 durat6
> durat7 durat8 durat9 durat10 durat11, nocons nolog i(childcaseid)
>
> After estimation, I need to find the predicted probability for each individual.
>
> I do the following:
>
> predict prob,pu0
>
> The help file says that this calculation assumes that the random
> effect is 0. My question is  if it would be possible to find the
> predicated probability not assuming that? Or is this the best I can
> do.
>
> Thanks
>
> Urmi Bhattacharya
>
> *
> *   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