Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Pseudo R2 for xtlogit


From   [email protected] (Jean Marie Linhart, StataCorp LP)
To   [email protected]
Subject   Re: st: RE: Pseudo R2 for xtlogit
Date   Wed, 09 Aug 2006 10:27:07 -0500

Scott Merryman wrote:

> Though the documentation states that e(ll_0) is saved, it is not returned
> after -xtlogit, re-

It is saved after -xtlogit, re- when you use the -noskip- option.

. sysuse auto, clear
(1978 Automobile Data)

. qui xtlogit fore mpg gear, i(rep) re noskip

. display "pseudo R2=" (e(ll_0)-e(ll))/e(ll_0)
pseudo R2=.54613321

--Jean Marie
[email protected]
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index