R/data.R

#' A simulated observed dataset from a partially nested design.
#'
#' A dataset simulated from a partially nested design
#' containing two types of pre-treatment confounders, treatment assignments,
#' treatment cluster assignments, and outcome scores.
#'
#'
#' @format A data frame with 200 rows and 5 variables:
#' \describe{
#'   \item{Trt}{Treatment assignment indicator (1 for treatment and 0 for control).}
#'   \item{clus}{Observed treatment cluster assignment. clus = 0 for the control arm.}
#'   \item{Y}{An outcome variable}
#'   \item{Ly}{The first type of pre-treatment confounder that affects both the treatment assignment and outcome directly.}
#'   \item{Lz}{The first type of pre-treatment confounder that does not affect the outcome in a given treatment cluster directly, but affects both the treatment assignment and treatment cluster assignment.}
#' }
#' @source \url{https://github.com/xliu12/IPWpn}
"dat_obs"

Try the IPWpn package in your browser

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

IPWpn documentation built on April 13, 2021, 5:08 p.m.