fit2stats: Summarize statistics with a model

View source: R/fit2summary.R

fit2statsR Documentation

Summarize statistics with a model

Description

Summarize statistics with a model

Usage

fit2stats(fit, method = "default", digits = 2, mode = 1)

Arguments

fit

An object of class lm or glm or coxph or survreg

method

character choices are one of the c("likelihood","wald")

digits

integer indicating the number of decimal places

mode

integer

Value

An object of class "data.frame"

Examples

library(survival)
data(cancer)
fit=glm(status~rx+sex+age+obstruct+nodes,data=colon,family="binomial")
fit2stats(fit)
fit=lm(mpg~wt*hp+am,data=mtcars)
fit2stats(fit)
fit=survreg(Surv(time,status)~rx+sex+age+obstruct+nodes,data=colon)
fit2stats(fit)

autoReg documentation built on Nov. 14, 2023, 9:07 a.m.