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
Creating space between bar chartsHi, I am using Stata 17 and need help in bar charts. Below is an example of my dataset: Code: * E…
Multilevel model with olog?I usally use the command: mixed dep_var || country_var: Problem is that my dependent variable is o…
Generating new ID variable taking into account duplicates across 2 other variablesFirst time poster, so I’m sorry for any errors… I have two ID variables (ID1 and ID2). I want to cr…
Need help with Mean for Grouped DataArray Good morning Stata Family, Please I want to create a new variable for the average wage earne…
how to calculate pseudo-R2 using imputed data in a multinomial logistic regressionDear all, I would like to calculate the pseudo-R2 for my multinomial logistic regression in multipl…
Subscribe to:
Post Comments (Atom)
0 Response to ldev following logistic inconsistent with estat gof and with Hosmer & Lemeshow
Post a Comment