data_med_mod_serial_cat: Sample Dataset: Serial Moderated Mediation with Two...

data_med_mod_serial_catR Documentation

Sample Dataset: Serial Moderated Mediation with Two Categorical Moderators

Description

A serial mediation model with two categorical moderators.

Usage

data_med_mod_serial_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_serial_cat)
dat <- data_med_mod_serial_cat
summary(lm_m1 <- lm(m1 ~ x*w1 + c1 + c2, dat))
summary(lm_m2 <- lm(m2 ~ m1 + x + w1 + c1 + c2, dat))
summary(lm_y <- lm(y ~ m2*w2 + m1 + x + w1 + c1 + c2, dat))

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