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