add_family_branch: Add family branches to a 'mverse' object.

View source: R/family_branch.R

add_family_branchR Documentation

Add family branches to a mverse object.

Description

This method adds a family branch to an existing mverse object. A family branch is used to define options for the analysis distributions when using glm_mverse().

Usage

add_family_branch(.mverse, br)

Arguments

.mverse

a mverse object.

br

a family_branch object.

Value

The resulting mverse object.

See Also

Other family branch functions: family_branch

Examples

# Define a family branch.
model_distributions <- family_branch(
  gaussian, poisson(link = "log")
)
# Create a mverse and add the branch.
mv <- create_multiverse(hurricane) %>%
  add_family_branch(model_distributions)

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