add_formula_branch {mverse} | R Documentation |
Add formula branches to a mverse
object.
Description
This method adds a formula branch to an existing mverse
object.
A formula branch is used to specify model structure options for the
analysis.
Usage
add_formula_branch(.mverse, br)
Arguments
.mverse |
a |
br |
a |
Value
The resulting mverse
object.
See Also
Other formula branch functions:
formula_branch
Examples
# Define a formula branch.
model_specifications <- formula_branch(
y ~ MasFem,
y ~ MasFem + hurricane_strength,
y ~ MasFem * hurricane_strength
)
# Create a mverse, add the branch.
mv <- create_multiverse(hurricane) %>%
add_formula_branch(model_specifications)
[Package mverse version 0.2.2 Index]