data_example_for_standardized_effect: Example micro-randomized trial (MRT) data for standardized...

data_example_for_standardized_effectR Documentation

Example micro-randomized trial (MRT) data for standardized effect size

Description

A synthetic data set in long format, one row per participant-by-decision point, suitable for illustrating 'calculate_mrt_effect_size()'.

Usage

data_example_for_standardized_effect

Format

A data frame with 5000 observations and 10 variables:

id

Individual id number.

decision_point

Decision point index.

availability

Availability indicator (=1 available, =0 not available).

prob_treatment

Randomization probability for treatment.

treatment

Treatment assignment (=1 treated, =0 not treated).

covariate1

Time-varying covariate 1.

covariate2

Time-varying covariate 2.

treatment_effect

Time-varying treatment effect used to generate outcome.

sigma

Outcome noise scale.

outcome

Continuous proximal outcome.


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