produce a flextable describing a mixed model. The function is only using package 'broom.mixed' that provides the data presented in the resulting flextable.
# S3 method for merMod
as_flextable(x, ...)
# S3 method for lme
as_flextable(x, ...)
# S3 method for gls
as_flextable(x, ...)
# S3 method for nlme
as_flextable(x, ...)
# S3 method for brmsfit
as_flextable(x, ...)
# S3 method for glmmTMB
as_flextable(x, ...)
# S3 method for glmmadmb
as_flextable(x, ...)
a mixed model
unused argument
if(require("broom.mixed") && require("nlme")){
m1 <- lme(distance ~ age, data = Orthodont)
ft <- as_flextable(m1)
ft
}
#> Loading required package: broom.mixed
#> a flextable object.
#> col_keys: `group`, `term`, `estimate`, `std.error`, `df`, `statistic`, `p.value`, `signif`
#> header has 1 row(s)
#> body has 8 row(s)
#> original dataset sample:
#> effect group term estimate std.error df statistic
#> 1 Fixed effects <NA> <NA> NA NA NA NA
#> 3 <NA> <NA> (Intercept) 16.7611111 0.77524610 80 21.620375
#> 4 <NA> <NA> age 0.6601852 0.07125325 80 9.265334
#> 2 Random effects <NA> <NA> NA NA NA NA
#> 5 <NA> Subject sd_(Intercept) 2.3270339 NA NA NA
#> p.value signif
#> 1 NA
#> 3 3.737322e-35
#> 4 2.645938e-14
#> 2 NA
#> 5 NA