Drop components in modelsummary
15:35 21 Apr 2026

Consider the followin example:

library(glmmTMB)
library(modelsummary)

mod <- glmmTMB(
  formula = mpg ~ cyl + disp + hp + (1|gear),
  data = mtcars,
  ziformula = ~ hp + wt
)

modelsummary(mod,
             output = "flextable",
             shape = component + effect + term + statistic ~ model,
             )

which results in:

enter image description here

How can I drop the conditional -> random and zero_inflated -> fixed rows from the table and leave only the conditional component?

r modelsummary glmmtmb