# 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)
# Specify the covariates separately.
model_specifications <- formula_branch(
y ~ MasFem,
covariates = c("hurricane_strength", "Year", "Category", "NDAM")
)
model_specifications
Run the code above in your browser using DataLab