glm.nb_mverse: Fit negative binomial regression models across the multiverse

View source: R/linear_models.R

glm.nb_mverseR Documentation

Fit negative binomial regression models across the multiverse

Description

glm.nb_mverse fits MASS::glm.nb across the multiverse according to model specifications provided by formula_branch. At least one formula_branch must have been added.

Usage

glm.nb_mverse(.mverse, parallel = FALSE, progress = FALSE)

Arguments

.mverse

a mverse object.

parallel

passed to multiverse::execute_multiverse() to indicate whether to execute the multiverse analysis in parallel. Defaults to FALSE.

progress

passed to multiverse::execute_multiverse() to indicate whether to include a progress bar for each step of the execution. Defaults to FALSE.

Value

A mverse object with glm.nb fitted.

See Also

Other model fitting functions: glm_mverse(), lm_mverse()

Examples


# Displaying the multiverse table with \code{glm.nb} models fitted.
hurricane_outliers <- filter_branch(
  !Name %in% c("Katrina", "Audrey", "Andrew"),
  TRUE # include all
)
model_specifications <- formula_branch(alldeaths ~ MasFem)
mv <- create_multiverse(hurricane) %>%
  add_filter_branch(hurricane_outliers) %>%
  add_formula_branch(model_specifications) %>%
  glm.nb_mverse()
summary(mv)


mverse documentation built on June 21, 2025, 5:09 p.m.