R/datamed.R

#' @title Data for Examples (Binary Mediator)
#'
#' @description Simulated data set containing 1000 observations on 5 measured variables with no missing values.
#'     The first three variables are the binary exposure, mediator and outcome, respectively, while the last
#'     two variables are the potential adjustment covariates (one binary and one continuous).
#'
#' @docType data
#'
#' @usage data(datamed)
#'
#' @format A data frame with 1000 rows and 5 variables:
#' \describe{
#'   \item{X}{exposure, binary variable}
#'   \item{M}{mediator, binary variable}
#'   \item{Y}{outcome, binary variable}
#'   \item{C1}{first covariate, binary variable}
#'   \item{C2}{second covariate, continuous variable}
#' }
#' @keywords datasets
"datamed"

Try the ExactMed package in your browser

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

ExactMed documentation built on Sept. 22, 2023, 5:08 p.m.