table_lm: Quick table of regression model output

View source: R/tinytable.R

table_lmR Documentation

Quick table of regression model output

Description

Quick table of regression model output

Usage

table_lm(x, base_digits = 2, write = FALSE)

Arguments

x

A model with a broom::tidy() method defined, or pre-tidied data.

base_digits

Digits to approximate on the estimate. This also controls digits printed for the S.E. and t-statistic columns. Defaults to 2. To set digits for all 3 numbers, pass a length-3 vector.

write

Whether to write to a temporary file and open it in Viewer. Defaults to FALSE. Can specify a format for tinytable::save_tt().

Value

A tinytable table

Examples

x <- lm(mpg ~ hp, mtcars)
table_lm(x) # `write = ".docx"` to also write out to a Word file

yjunechoe/penngradlings documentation built on Sept. 6, 2024, 8:13 p.m.