R/sim_data.R

#' A simulated dataset for demonstrating mediation analysis with a single mediator
#'
#' A simulated dataset with three variables.
#'
#' @format A data frame with 1000 rows:
#' \describe{
#'   \item{x}{Exposure variable}
#'   \item{m}{Mediator}
#'   \item{y}{Outcome}
#' }
#'

"sim_data"

Try the intmed package in your browser

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

intmed documentation built on Aug. 28, 2020, 1:10 a.m.