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/