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.

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)