Learn R Programming

hesim (version 0.5.5)

lm_list: List of lm objects

Description

Combine lm objects into a list

Usage

lm_list(...)

Value

Returns an object of class lm_list.

Arguments

...

Objects of class lm, which can be named.

Examples

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