Skip to contents
loading...

Create a rich-formatted table using the table of coefficients of the summary.lm object

Usage

# S3 method for summary.lm
tabularise_coef(data, ..., kind = "ft", env = parent.frame())

Arguments

data

A summary.lm object

...

Additional arguments passed to tabularise_tidy.lm()

kind

The kind of table to produce: "tt" for tinytable, or "ft" for flextable (default).

env

The environment where to evaluate the model.

Value

A flextable object you can print in different formats (HTML, LaTeX, Word, PowerPoint) or rearrange with the {flextable} functions.

Examples

iris_lm <- lm(data = iris, Petal.Length ~ Sepal.Length)
iris_lm_sum <- summary(iris_lm)
tabularise::tabularise$coef(iris_lm_sum)

Linear model

NA

Term

Estimate

Standard Error

t value

p value

\alpha

-7.10

0.5067

-14.0

< 2·10-16

***

\beta_{}

1.86

0.0859

21.6

< 2·10-16

***

0 <= '***' < 0.001 < '**' < 0.01 < '*' < 0.05