add_formula_branch {mverse}R Documentation

Add formula branches to a mverse object.

Description

This method adds one or more formula branches to an existing mverse object. Formula branches are used to specify model structure options for the analysis.

Usage

add_formula_branch(.mverse, ...)

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

Arguments

.mverse

a mverse object.

...

formula_branch objects.

Value

The resulting mverse object.

See Also

Other formula branch functions: formula_branch()

Examples

# Define a formula branch.
model_specifications <- formula_branch(
  y ~ femininity,
  y ~ femininity + hurricane_strength,
  y ~ femininity * hurricane_strength
)
# Create a mverse, add the branch.
mv <- create_multiverse(hurricane) %>%
  add_formula_branch(model_specifications)

[Package mverse version 0.1.0 Index]