R/crt4armSimData.R

#' Simulated 4-Arm Cluster Randomized Trial (CRT) Data
#'
#' A simulated cluster randomised trial dataset containing 10 schools and 1,000 pupils.
#' This is a 4-arm trial design with one control group and three intervention groups.
#'
#' @format A data frame with 1,000 rows and 7 variables:
#' \describe{
#'   \item{pupils}{Identifier for each pupil}
#'   \item{schools}{Identifier for each school}
#'   \item{interventions}{Treatment assignment coded as 0 for control and 1–3 for intervention groups}
#'   \item{pretest}{Pre-test scores}
#'   \item{gender}{Binary gender}
#'   \item{ethnicity}{A categorical variable with 3 categories}
#'   \item{posttest}{Post-test scores}
#' }
#' @source Simulated
"crt4armSimData"

Try the epts package in your browser

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

epts documentation built on June 8, 2025, 11:04 a.m.