Skip to contents
loading...

The default tabularise() method for lm objects create a minimalist table with result of the analysis in a rich-formatted tabular presentation.

Usage

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

Arguments

data

An lm object

...

Additional arguments passed to tabularise_coef.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 that 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)
tabularise::tabularise(iris_lm)

Linear model

NA

Term

Estimate

\alpha

-7.10

\beta_{}

1.86