powered by
Make a list of univariable model with multivariable regression model
fit2list(fit)
An object of class "fitlist" which is a list of objects of class "lm" or "glm"
An object of class "lm" or "glm"
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)
Run the code above in your browser using DataLab