R/data.R

#' Example stepped wedge data
#'
#' Data generated for the purpose of demonstrating the steppedwedge package
#'
#' @format ## `sw_data_example`
#' A data frame with 2,063 rows and 6 columns:
#' \describe{
#'   \item{cluster}{Cluster id}
#'   \item{period}{Time period}
#'   \item{trt}{Treatment indicator}
#'   \item{outcome_bin}{Binary outcome}
#'   \item{outcome_cont}{Continuous outcome}
#'   ...
#' }
"sw_data_example"

Try the steppedwedge package in your browser

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

steppedwedge documentation built on April 3, 2025, 9:57 p.m.