add_family_branch {mverse}R Documentation

Add family branches to a mverse object.

Description

This method adds one or more family branches to an existing mverse object. Family branches are used to define options for the analysis distributions when using glm_mverse().

Usage

add_family_branch(.mverse, ...)

## S3 method for class 'mverse'
add_family_branch(.mverse, ...)

Arguments

.mverse

a mverse object.

...

family_branch objects.

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)

[Package mverse version 0.1.0 Index]