data_mod_cat: Sample Dataset: Moderation with One Categorical Moderator

data_mod_catR Documentation

Sample Dataset: Moderation with One Categorical Moderator

Description

A moderation model with a categorical moderator.

Usage

data_mod_cat

Format

A data frame with 300 rows and 5 variables:

x

Predictor. Numeric.

w

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

y

Outcome variable. Numeric.

c1

Control variable. Numeric.

c2

Control variable. Numeric.

Examples

data(data_mod_cat)
dat <- data_mod_cat
summary(lm_y <- lm(y ~ x*w + c1 + c2, dat))

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