View source: R/misc_functions.R
logistic_gof | R Documentation |
logistic_gof
performs the Hosmer and Lemeshow test to test the goodness of fit of a logistic
regression model. This function is part of residuals.lrm
from package rms
.
logistic_gof(model)
model |
A logistic regression model object. |
Frank Harell, Vanderbilt University <f.harrell@vanderbilt.edu>
Hosmer DW, Hosmer T, Lemeshow S, le Cessie S, Lemeshow S. A comparison of goodness-of-fit tests for the logistic regression model. Stat in Med 16:965–980, 1997.
data(diet, package = "Epi")
model <- glm(chd ~ fibre, data = diet, family = binomial)
glm_coef(model, labels = c("Constant", "Fibre intake (g/day)"))
logistic_gof(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.