info.glm | R Documentation |
Summarize a logistic regression model of class "glm"
.
## S3 method for class 'glm' info(x)
x |
an object of class "glm" |
The function info.glm
produces a summary for a
logistic regression model fitted with the glm
or
regress
function. There are six sections.
Model formula, data frame, and sample size (N), and predicted category.
Chi-square statistic, degrees of freedom, p-value.
Stukel's GOF Test, Tjur's psuedo R squared, and Akaike's information criterion (AIC).
ANOVA table with type III (marginal) effects.
Regression coefficients (B), standard errors (SE), z-values, and p-values.
odds ratios with 95% confidence intervals
The ANOVA table is obtained from the Anova
function in
the car
package. Odds ratios and confidence intervals are obtained
from the Confint
function from the car
package.
Tjur's pseudo-R.squared (2009) is defined as the mean absolute difference between the mean predicted probability for the positive group and the mean predicted probability for the negative group. It ranges from zero to one.
Stukel provides a goodness of fit (GOF) fit test for ungrouped data, and has better properties than the traditional Hosmer-Lemeshow test in simulation studies. A significant result suggests model misspecification. See Allison (2014) for details.
A list of class c("info.glm"
, "list"
).
overall
omnibus.test
fit.indices
anova.table
coefficient.table
odds.ratios
Allison, P. D. (2014). "Measures of fit for logistic regression", SAS Global Forum https://statisticalhorizons.com/wp-content/uploads/GOFForLogisticRegression-Paper.pdf
Allison, P. D. (2014). "Another goodness-of-fit test for logistic regression". https://statisticalhorizons.com/another-goodness-of-fit-test-for-logistic-regression
Stukel, T. A. (1988). “Generalized Logistic Models.” Journal of the American Statistical Association 83:426–431.
Tjur, T. (2009) “Coefficients of determination in logistic regression models—A new proposal: The coefficient of discrimination.” The American Statistician 63: 366-372.
Anova
, Confint
fit <- glm(caesarian ~ age + bp + delivery.time, family = binomial, data = caesarian) info(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.