Learn R Programming

hesim (version 0.2.3)

lm_list: List of lm objects

Description

Return an object of class "lm_list" multiple objects of class lm.

Usage

lm_list(...)

Arguments

...

Objects of class lm, which can be named.

Value

Returns an object of class "lm_list".

Examples

Run this code
# 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