R/data.R

#' example_data: A simulated data set for illustrating mediation analysis in BayesGmed. 
#'
#' The data set contains a binary outcome variable Y, a binary exposure A, 
#' a binary mediator M, and two confounding variables (Z1 and Z2) for 
#' 300 individuals.
#'
#' @format ## `example_data`
#' A data frame with 300 rows and 5 columns:
#' \describe{
#'   \item{Z1, Z2}{confounders}
#'   \item{A}{binary exposure}
#'   \item{M}{binary mediator}
#'   \item{Y}{binary outcome}
#'   ...
#' }
"example_data"

Try the BayesGmed package in your browser

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

BayesGmed documentation built on May 29, 2024, 12:05 p.m.