R/sample_data.R

#' Mock data set with Binary Treatment
#'
#' A dataset with a simple data structure O = (A, Y, W), where exposure (A) and outcome (Y) are
#' binary. This is a simple dataset designed specifically to illustrate the TMLE estimation procedure.
#'
#' @format A \code{data.frame} with 5 columns.
#' \describe{
#'   \item{Y}{A binary variable representing an outcome of interest.}
#'   \item{A}{A binary variable representing an intervention of interest.}
#'   \item{W1}{A continuous variable representing a covariate of interest.}
#'   \item{W2}{A continuous variable representing a covariate of interest.}
#'   \item{W3}{A continuous variable representing a covariate of interest.}
#' }

"data_bin"

#' Mock data set with Categorical Treatment
#'
#' A dataset with a simple data structure O = (A, Y, W), where outcome (Y) is
#' binary and treatment (A) is categorical.
#' This is a simple dataset designed specifically to illustrate the TMLE estimation procedure.
#'
#' @format A \code{data.frame} with 6 columns.
#' \describe{
#'   \item{Y}{A binary variable representing an outcome of interest.}
#'   \item{A}{A binary variable representing an intervention of interest.}
#'   \item{W1}{A continuous variable representing a covariate of interest.}
#'   \item{W2}{A continuous variable representing a covariate of interest.}
#'   \item{W3}{A continuous variable representing a covariate of interest.}
#'   \item{W4}{A continuous variable representing a covariate of interest.}
#' }

"data_cat"

#' Mock data set for Variable Importance Analysis with Categorical Treatment
#'
#' A dataset with a simple data structure O = (A, Y, W), where outcome (Y) is
#' binary and treatment (A) is categorical.
#' This is a simple dataset designed specifically to illustrate the TMLE estimation procedure.
#'
#' @format A \code{data.frame} with 6 columns.
#' \describe{
#'   \item{Y}{A binary variable representing an outcome of interest.}
#'   \item{A}{A binary variable representing an intervention of interest.}
#'   \item{W1}{A categorical variable representing a covariate of interest.}
#'   \item{W2}{A categorical variable representing a covariate of interest.}
#'   \item{W3}{A categorical variable representing a covariate of interest.}
#'   \item{W4}{A categorical variable representing a covariate of interest.}
#' }

"data_cat_vim"

#' Mock data set with Categorical Treatment and rare treatment
#'
#' A dataset with a simple data structure O = (A, Y, W), where outcome (Y) is
#' binary and treatment (A) is categorical, with one of the categories having
#' low probability.
#' This is a simple dataset designed specifically to illustrate the TMLE estimation procedure
#' with realistic intervention.
#'
#' @format A \code{data.frame} with 6 columns.
#' \describe{
#'   \item{Y}{A binary variable representing an outcome of interest.}
#'   \item{A}{A binary variable representing an intervention of interest.}
#'   \item{W1}{A categorical variable representing a covariate of interest.}
#'   \item{W2}{A categorical variable representing a covariate of interest.}
#'   \item{W3}{A categorical variable representing a covariate of interest.}
#'   \item{W4}{A categorical variable representing a covariate of interest.}
#' }

"data_cat_realistic"
tlverse/tmle3mopttx documentation built on Aug. 9, 2022, 3:31 p.m.