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


From   "Antonio Rodrigues Andres" <>
To   <>
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?

*   For searches and help try:

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