powered by
lm
Combine lm objects into a list
lm_list(...)
Returns an object of class lm_list.
lm_list
Objects of class lm, which can be named.
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