override_summary: Overrides the Generalized Linear Models summary methods

Description Usage Details See Also Examples

View source: R/main.R

Description

This function overrides the summary.glm and summary.negbin S3 methods by the summarylr function in the calling environment.

Usage

1

Details

Although some minor compatibility issues may exist when calling this function in the global environment, most scripts should work with it. Indeed summarylr behaves like summary.glm but adds a $extra field containing P-value info. The first letter of the field name ('e') is unique, avoiding problems with scripts that access fields with short names (e.g. model$x for model$xlevels).

See Also

Other Extended GLM summary functions: print.summary.glmglrt(), summarylr()

Examples

1
2
3
model = glm(family="binomial", cbind(50,30) ~ 1)
override_summary()
summary(model) # Additional 'LRT P-value' column

glmglrt documentation built on Aug. 7, 2020, 9:10 a.m.