R/data.R

#' Mediation Example Dataset
#'
#' A toy dataset for demonstrating mediation analysis in settings where there
#' are multiple mediators
#'
#' @format ## `med_dat`
#' A list with three items:
#' \describe{
#'   \item{Y}{numeric vector containing the outcome variable}
#'   \item{M}{numeric matrix of 20 continuous mediators}
#'   \item{A}{numeric vector containing the exposure variable}
#'   ...
#' }
"med_dat"

Try the hdmed package in your browser

Any scripts or data that you put into this service are public.

hdmed documentation built on May 29, 2024, 10:26 a.m.