This method adds one or more formula branches to an existing mverse object. The formula branches are used to specify a model for the main analysis.

add_formula_branch(.mverse, ...)

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

Arguments

.mverse

a mverse object.

...

formula_branch objects.

Value

The resulting mverse object.

See also

Other methods for working with a formula branch: family_branch(), formula_branch()

Examples

if (FALSE) { mv <- create_multiverse(df) model_spec <- formula_branch(y ~ x1 + x2, y ~ x1 * x2) mv <- mv %>% add_formula_branch(model_spec) }