I haven't find any helpful thread. How can i calculate BIC and Hosmer-Lemeshow statistic for a logistic regression model. I have used glm for logistic fit. -- View this message in context: http://www.nabble.com/BIC-and-Hosmer-Lemeshow-statistic-for-logistic-regression-tf3945943.html#a11193273 Sent from the R help mailing list archive at Nabble.com.
Frank E Harrell Jr
2007-Jun-19 12:10 UTC
[R] BIC and Hosmer-Lemeshow statistic for logistic regression
spime wrote:> > I haven't find any helpful thread. How can i calculate BIC and > Hosmer-Lemeshow statistic for a logistic regression model. I have used glm > for logistic fit.See the Design package's lrm function and residuals.lrm for a better GOF test. -- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University
Gavin Simpson
2007-Jun-19 12:22 UTC
[R] BIC and Hosmer-Lemeshow statistic for logistic regression
On Tue, 2007-06-19 at 04:59 -0700, spime wrote:> > I haven't find any helpful thread. How can i calculate BIC and > Hosmer-Lemeshow statistic for a logistic regression model. I have used glm > for logistic fit.Not sure about the Hosmer-Lemeshow, but AIC() with argument k = log(n), where n is number of observations, will get BIC. See ?AIC. HTH G -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ UK. WC1E 6BT. [w] http://www.freshwaters.org.uk %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%