fit2list: Make a list of univariable model with multivariable...

View source: R/fit2list.R

fit2listR Documentation

Make a list of univariable model with multivariable regression model

Description

Make a list of univariable model with multivariable regression model

Usage

fit2list(fit)

Arguments

fit

An object of class "lm" or "glm"

Value

An object of class "fitlist" which is a list of objects of class "lm" or "glm"

Examples

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

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