
Create a rich-formatted table from a glm object
Source:R/tabularise.glm.R
tabularise_default.glm.Rd
Create a rich-formatted table from a glm object
Usage
# S3 method for glm
tabularise_default(
data,
footer = TRUE,
lang = getOption("data.io_lang", "en"),
...,
kind = "ft",
env = parent.frame()
)
Arguments
- data
A glm object
- footer
If
TRUE
(by default), add a footer to the table- lang
The natural language to use. The default value can be set with, e.g.,
options(data.io_lang = "fr")
for French.- ...
Additional arguments passed to
tabularise_coef.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 is returned. You can print it in different formats (HTML, LaTeX, Word, PowerPoint) or rearrange it with the {flextable} functions.
Examples
iris_glm <- glm(data = iris, Petal.Length ~ Sepal.Length)
tabularise::tabularise(iris_glm)
Generalized Linear Model
NA
Term
Estimate
\alpha
-7.10
\beta_{}
1.86
Degrees of freedom: 149 Total (i.e. no model) 148 Residual
Total deviance: 464.3
Residual deviance: 111.5 AIC: 387.1