formula_branch {mverse}R Documentation

Create a new formula branch.

Description

Create a new formula branch.

Usage

formula_branch(..., name = NULL)

Arguments

...

branch definition expressions.

name

Name for the new formula.

Value

a formula_branch object.

See Also

Other formula branch functions: add_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]