R/BPG06dat.R

#' Simulated dataset from Bauer, Preacher, and Gil (2006)
#'
#' In supplementary materials, Bauer, Preacher, and Gil (2006) provide a simulated dataset in SAS format.
#' That dataset is replicated here.
#'
#' @format A data frame with 800 observations (from 100 subjects) and 4 variables
#' \describe{
#'   \item{id}{Level 2 or subject ID}
#'   \item{x}{Predictor}
#'   \item{m}{Mediator}
#'   \item{y}{Outcome}
#' }
#' @source \doi{doi:10.1037/1082-989X.11.2.142}
#' @references
#' Bauer, D. J., Preacher, K. J., & Gil, K. M. (2006). Conceptualizing and testing random indirect effects and moderated mediation in multilevel models: New procedures and recommendations. Psychological Methods, 11(2), 142–163. \doi{https://doi.org/10.1037/1082-989X.11.2.142}
"BPG06dat"
falkcarl/multilevelmediation documentation built on Jan. 11, 2025, 5:16 a.m.