Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: pseudo r square


From   Paul Millar <[email protected]>
To   [email protected]
Subject   Re: st: pseudo r square
Date   Tue, 08 Mar 2005 22:44:40 -0700

Eric,

You could just run the nbreg with only the depvar, then with the full model.  After each do the following command:
di "log likelihood=" e(ll)

The pseudo R2 is just the proportional improvement in the -2ll

You can do this in one command after the nbreg:
di "pseudo R2=" (e(ll_0)-e(ll))/e(ll_0)


- Paul

At 05:20 AM 08/03/2005, you wrote:
Hi all,

Does anybody know how to generate a Pseudo R-Square using the negative binomial model with the cluster option in Stata?

Any help on this would be much appreciated.

Thanks,

Eric
* * 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