as_flextable.merMod {flextable} | R Documentation |
Transform a mixed model into a flextable
Description
produce a flextable describing a mixed model. The function is only using package 'broom.mixed' that provides the data presented in the resulting flextable.
You can remove significance stars by setting options
options(show.signif.stars = FALSE)
.
Usage
## S3 method for class 'merMod'
as_flextable(x, add.random = TRUE, ...)
## S3 method for class 'lme'
as_flextable(x, add.random = TRUE, ...)
## S3 method for class 'gls'
as_flextable(x, add.random = TRUE, ...)
## S3 method for class 'nlme'
as_flextable(x, add.random = TRUE, ...)
## S3 method for class 'brmsfit'
as_flextable(x, add.random = TRUE, ...)
## S3 method for class 'glmmTMB'
as_flextable(x, add.random = TRUE, ...)
## S3 method for class 'glmmadmb'
as_flextable(x, add.random = TRUE, ...)
Arguments
x |
a mixed model |
add.random |
TRUE or FALSE, if TRUE random effects are added to the table. |
... |
unused argument |
See Also
Other as_flextable methods:
as_flextable()
,
as_flextable.data.frame()
,
as_flextable.gam()
,
as_flextable.glm()
,
as_flextable.grouped_data()
,
as_flextable.htest()
,
as_flextable.kmeans()
,
as_flextable.lm()
,
as_flextable.pam()
,
as_flextable.summarizor()
,
as_flextable.table()
,
as_flextable.tabular()
,
as_flextable.tabulator()
,
as_flextable.xtable()
Examples
if (require("broom.mixed") && require("nlme")) {
m1 <- lme(distance ~ age, data = Orthodont)
ft <- as_flextable(m1)
ft
}
[Package flextable version 0.9.6 Index]