I am trying to reproduce Hosmer & Lemeshow's example (3rd edition, Table 4.16, p115). With 'logistic' I get the same coefficients, Std. Err., etc. that they do, but if I then run 'ldev' I get number of covariate patterns = 471 whereas the text reports J=457 (p185) and so does 'estat gof'; also, I get a deviance from ldev of 474.50 whereas the text shows D=469.6 (p185) (the D value given by fitstat on the same sample is 500.5).
I use the ldev from ucla (1999); the other (sqv4 & sqv4_1 from stb) produces an error message ("factor-variable and time-series operators not allowed"), as does 'lpredict dev'.
Any help would be greatly appreciated.
Related Posts with ldev following logistic inconsistent with estat gof and with Hosmer & Lemeshow
ppmlhdfe: lagged dependent variable as a regressorDear all, I am using ppmlhdfe to estimate a gravity model that includes an auto-regressive (AR) ter…
Can I make a bivariate histogram for two indicator variables?Let's say I have two dummy variables like this. Code: set obs 100 gen A=runiformint(0,1) gen B=run…
If else inside for each loopI am trying to run the following code and it does not seem to be working. I want to change the refer…
Different results between Heckman model and separate probit + OLSDear Statalist I'm running a Heckman model and I wanted to compare the results of the Heckman model…
How do I run a Ttest in Stata when I have multiple groups but I only want to compare specific groups? (More Information Below)I am trying to do a basic Ttest. There 6 groups based on gender, race and ethnicity. I want to run a…
Subscribe to:
Post Comments (Atom)
0 Response to ldev following logistic inconsistent with estat gof and with Hosmer & Lemeshow
Post a Comment