info.glm: Model summary for a "glm" Object

View source: R/info.glm.R

info.glmR Documentation

Model summary for a "glm" Object

Description

Summarize a logistic regression model of class "glm".

Usage

## S3 method for class 'glm'
info(x)

Arguments

x

an object of class "glm"

Details

The function info.glm produces a summary for a logistic regression model fitted with the glm or regress function. There are six sections.

Overall

Model formula, data frame, and sample size (N), and predicted category.

Omnibus Test

Chi-square statistic, degrees of freedom, p-value.

Fit Measures

Stukel's GOF Test, Tjur's psuedo R squared, and Akaike's information criterion (AIC).

Analysis of Variance

ANOVA table with type III (marginal) effects.

Regression Coefficients

Regression coefficients (B), standard errors (SE), z-values, and p-values.

Odds Ratios

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.

Value

A list of class c("info.glm", "list").

  • overall

  • omnibus.test

  • fit.indices

  • anova.table

  • coefficient.table

  • odds.ratios

References

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.

See Also

Anova, Confint

Examples

fit <- glm(caesarian ~ age + bp + delivery.time, family = binomial, data = caesarian)
info(fit)

Rkabacoff/qacReg documentation built on Aug. 1, 2022, 11:11 p.m.