data_med_mod_parallel_cat: Sample Dataset: Parallel Moderated Mediation with Two...

data_med_mod_parallel_catR Documentation

Sample Dataset: Parallel Moderated Mediation with Two Categorical Moderators

Description

A parallel mediation model with two categorical moderators.

Usage

data_med_mod_parallel_cat

Format

A data frame with 300 rows and 8 variables:

x

Predictor. Numeric.

w1

Moderator. String. Values: "group1", "group2", "group3"

w2

Moderator. String. Values: "team1", "team2"

m1

Mediator 1. Numeric.

m2

Mediator 2. Numeric.

y

Outcome variable. Numeric.

c1

Control variable. Numeric.

c2

Control variable. Numeric.

Examples

data(data_med_mod_parallel_cat)
dat <- data_med_mod_parallel_cat
summary(lm_m1 <- lm(m1 ~ x*w1 + c1 + c2, dat))
summary(lm_m2 <- lm(m2 ~ x*w1 + c1 + c2, dat))
summary(lm_y <- lm(y ~ m1*w2 + m2*w2 + m1 + x + w1 + c1 + c2, dat))

manymome documentation built on Oct. 4, 2024, 5:10 p.m.