tabularise_coef.summary.glm: Create a rich-formatted table using the table of coefficients...

View source: R/tabularise.glm.R

tabularise_coef.summary.glmR Documentation

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

Description

Create a rich-formatted {flextable} object with the table of coefficients from the summary() of a glm object.

Usage

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

Arguments

data

A summary.glm object

...

Additional arguments passed to tabularise_tidy.glm()

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_glm <- glm(data = iris, Petal.Length ~ Sepal.Length)
iris_glm_sum <- summary(iris_glm)
tabularise::tabularise$coef(iris_glm_sum)

SciViews/modelit documentation built on Nov. 24, 2024, 10:23 a.m.