Learn R Programming

glmglrt (version 0.2.2)

override_summary: Overrides the Generalized Linear Models summary methods

Description

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

Usage

override_summary()

Arguments

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

Run this code
# NOT RUN {
model = glm(family="binomial", cbind(50,30) ~ 1)
override_summary()
summary(model) # Additional 'LRT P-value' column
# }

Run the code above in your browser using DataLab