simdat {multilevelmediation}R Documentation

A simulated dataset with moderator

Description

This simulated dataset contains a hypothetical moderating variable that is dichotomously coded. The true model dictated that the moderator moderated both a and b paths of the mediational model, though the strength of moderation may be small.

Usage

simdat

Format

A data frame with 800 observations (from 50 subjects) and 5 variables

L2id

Level 2 or subject ID

X

Predictor

M

Mediator

Y

Outcome

mod

Moderator


[Package multilevelmediation version 0.3.1 Index]