Description Usage Arguments Format Details Value Note Author(s) References See Also Examples
Provides a HosmerLemeshow statistic and table following logistic regression.
1  hlGOF.test(observed, predicted, breaks = 15)

observed 
response variable 
predicted 
predicted statistic 
breaks 
breaks or groups 
The function has three arguments: observed term, predicted values, # groups
hlGOF.test is a postestimation function for logistic regression, following the use of glm(). Usage displays a table of observed vs predicted groups and an overall HL goodnessoffit statistic. The test is originally from Hilbe (2009).
numeric
hlGOF.test must be loaded into memory in order to be effectve. As a function in LOGIT, it is immediately available to a user. My thanks to Prof. Robert LaBudde for the initial version of this function.
Joseph M. Hilbe, Arizona State University, Robert LaBudde, Institute for Statisical Education (Statistics.com), provided initial code for this function for Hilbe, Logistic Regression Models, text.
Hilbe, J. M. (2015), Practical Guide to Logistic Regression, Chapman & Hall/CRC.
Hilbe, J. M. (2009), Logistic Regression Models, Chapman & Hall/CRC.
1 2 3 4 5 6 7 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.