| data_mod_cat_2w | R Documentation |
A two-moderator model, both categorical.
data_mod_cat_2w
A data frame with 600 rows and 6 variables:
Outcome variable. Numeric.
Predictor. Numeric.
Moderator 1. String: "Control" and "Treatment".
Moderator 2. String: "Site 1", "Site 2", and "Site 3".
Control variable. Numeric.
Control variable. Numeric.
data(data_mod_cat_2w)
lm_out <- lm(y ~ x*gp + x*site + c1 + c2, data_mod_cat_2w)
out <- cond_effects(
wlevels = c("site", "gp"),
x = "x",
fit = lm_out
)
out
plot(out, facet_grid_cols = "site", graph_type = "tumble")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.