data_med_mod_b_mod {manymome}R Documentation

Sample Dataset: A Simple Mediation Model with b-Path Moderated-Moderation

Description

A simple mediation model with moderated-mediation on the b-path.

Usage

data_med_mod_b_mod

Format

A data frame with 100 rows and 5 variables:

x

Predictor. Numeric.

w1

Moderator on b-path. Numeric.

w2

Moderator on the moderating effect of w1. Numeric.

m

Mediator. Numeric.

y

Outcome variable. Numeric.

c1

Control variable. Numeric.

c2

Control variable. Numeric.

Examples

data(data_med_mod_b_mod)
dat <- data_med_mod_b_mod
summary(lm_m <- lm(m ~ x + c1 + c2, dat))
summary(lm_y <- lm(y ~ m*w1*w2 + x + c1 + c2, dat))

[Package manymome version 0.2.1 Index]