lm_list: List of 'lm' objects

View source: R/model-fits.R

lm_listR Documentation

List of lm objects

Description

Combine lm objects into a list

Usage

lm_list(...)

Arguments

...

Objects of class lm, which can be named.

Value

Returns an object of class lm_list.

Examples

 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)

hesim-dev/hesim documentation built on Feb. 14, 2024, 1:18 a.m.