R/causal_quartet.R

#' Causal Quartet Data
#'
#' This dataset contains 400 observations, each generated under a different
#' data generating mechanism:
#'   * (1) A collider
#'   * (2) A confounder
#'   * (3) A mediator
#'   * (4) M-bias
#'
#' @references D'Agostino McGowan L, Barrett M (2023). Causal inference is not a statistical problem. Preprint arXiv:2304.02683v1.
#'
#' @format A dataframe with 400 rows and 6 variables:
#'
#' * `dataset`: The data generating mechanism
#' * `exposure`: exposure
#' * `outcome`: outcome
#' * `covariate`: a known factor
#' * `u1`: an unknown factor
#' * `u2`: an unknown factor
"causal_quartet"

Try the quartets package in your browser

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

quartets documentation built on April 14, 2023, 12:25 a.m.