View source: R/summarize_model.R
summarize_model | R Documentation |
This function prints fixed effects and variance components for a mixed model.
summarize_model( model, ci = TRUE, show_cor_re = FALSE, show_cor_fe = FALSE, exponentiate = FALSE, digits = 2, component = NULL, ... ) summarise_model( model, ci = TRUE, show_cor_re = FALSE, show_cor_fe = FALSE, exponentiate = FALSE, digits = 2, component = NULL, ... )
model |
A supported model. |
ci |
Whether to include a 95% uncertainty interval for the variance components. Default is TRUE. |
show_cor_re |
Whether to include the correlations of the random effects. Default is FALSE. |
show_cor_fe |
Whether to include the correlations of the fixed effects. Default is FALSE. |
exponentiate |
Exponentiate the fixed-effect coefficient estimates and
confidence intervals (common for logistic regression). If |
digits |
Digits to display. |
component |
For glmmTMB objects, which of the three components 'cond', 'zi' or 'other' to select. Default is cond. Minimal testing on other options. |
... |
Not used at present. May allow model-specific functionality. |
This basically does pretty printing of the results of extract_vc()
and extract_fixed_effects()
.
Prints the variance components, fixed effects, etc. Invisibly, a list of those.
Not tested yet for complicated stanreg
objects like multivariate or
joint models.
extract_vc()
, extract_fixed_effects()
library(lme4) library(mixedup) lmer_mod <- lmer(Reaction ~ Days + (1 + Days | Subject), data = sleepstudy) summarize_model(lmer_mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.