powered by
lm
Return an object of class "lm_list" multiple objects of class lm.
lm_list(...)
Objects of class lm, which can be named.
Returns an object of class "lm_list".
# NOT RUN { dat <- psm4_exdata$costs$medical lm_fits <- lm_list(fit1 = stats::lm(costs ~ 1, data = dat), fit2 = stats::lm(costs ~ female, data = dat)) class(lm_fits) # }
Run the code above in your browser using DataLab