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

st: PSEUDO R2


From   "Antonio Rodrigues Andres" <ara@sam.sdu.dk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: PSEUDO R2
Date   Fri, 05 Dec 2003 15:28:44 +0100

I am estimating grouped data logistic models using glogit or simply
using regress with analytical weights

generate double lcrp=log(ntprop/(pop-ntprop))
generate double wt1=ntprop*(pop-ntprop)/pop


glogit ntprop pop clprop $xvars  $zvars $tvars  
regress lcrp clprop $xvars  $zvars $tvars [w=wt1]

If I want to get a measure of goodness of fit I might use the squared
correlation between y and yhat 

regress lcrp clprop $xvars $zvars $tvars 
predict yhat1
corr yhat1 lcrp

Is that correct?

Antonio
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index