info: Extended Model Summary

View source: R/info.R

infoR Documentation

Extended Model Summary

Description

Extended summary information for a model fit. Currently linear and logistic regression models are supported.

Usage

info(x)

Arguments

x

an object of type lm or glm. If glm, then family must be binomial.

Details

info is a generic S3 function providing detailed model information. The goal is to provide more extensive information than currently produced by summary. See the related methods for details.

Value

A list produced by info.lm or info.glm.

See Also

info.lm, info.glm.

Examples

#######################
# multiple regression #
#######################
fit <- lm(mpg ~ hp + wt + accel + origin, data = auto_mpg)
info(fit)

#######################
# logistic regression #
#######################
fit2 <- glm(caesarian ~ age + bp + delivery.time, family = binomial, data = caesarian)
info(fit2)

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