R/data_example_for_standardized_effect.R

#' Example micro-randomized trial (MRT) data for standardized effect size
#'
#' A synthetic data set in long format, one row per participant-by-decision point,
#' suitable for illustrating `calculate_mrt_effect_size()`.
#'
#' @format A data frame with 5000 observations and 10 variables:
#' \describe{
#'   \item{id}{Individual id number.}
#'   \item{decision_point}{Decision point index.}
#'   \item{availability}{Availability indicator (=1 available, =0 not available).}
#'   \item{prob_treatment}{Randomization probability for treatment.}
#'   \item{treatment}{Treatment assignment (=1 treated, =0 not treated).}
#'   \item{covariate1}{Time-varying covariate 1.}
#'   \item{covariate2}{Time-varying covariate 2.}
#'   \item{treatment_effect}{Time-varying treatment effect used to generate outcome.}
#'   \item{sigma}{Outcome noise scale.}
#'   \item{outcome}{Continuous proximal outcome.}
#' }
#'
#' @usage data_example_for_standardized_effect
#' @keywords datasets
"data_example_for_standardized_effect"

Try the MRTAnalysis package in your browser

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

MRTAnalysis documentation built on Jan. 24, 2026, 5:07 p.m.