For testing. Generated from the following
model.
mod <-
"
med ~ iv + cov1
dv ~ med + mod + med:mod + cov2
"
A data frame with 300 rows and 6 variables:
- dv
Dependent variable, continuous
- iv
Independent variable, continuous
- med
Mediator, continuous
- mod
Moderator, continuous
- cov1
Covariate, continuous
- cov2
Covariate, continuous