Assessing Proximal, Distal, and Mediated Causal Excursion Effects for Micro-Randomized Trials
Overview
Provides methods to analyze micro-randomized trials (MRTs) with binary treatment options. Supports four types of analyses: (1) proximal causal excursion effects, including weighted and centered least squares (WCLS) for continuous proximal outcomes by Boruvka et al. (2018) doi:10.1080/01621459.2017.1305274 and the estimator for marginal excursion effect (EMEE) for binary proximal outcomes by Qian et al. (2021) doi:10.1093/biomet/asaa070; (2) distal causal excursion effects (DCEE) for continuous distal outcomes using a two-stage estimator by Qian (2025) doi:10.1093/biomtc/ujaf134; (3) mediated causal excursion effects (MCEE) for continuous distal outcomes, estimating natural direct and indirect excursion effects in the presence of time-varying mediators by Qian (2025) doi:10.48550/arXiv.2506.20027; and (4) standardized proximal effect size estimation for continuous proximal outcomes, generalizing the approach in Luers et al. (2019) doi:10.1007/s11121-017-0862-5 to allow adjustment for baseline and time-varying covariates for improved efficiency.
- Updated the standardized-effect-size vignette author list.
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: MRTAnalysis/tests/testthat/test-dcee-numeric-golden-crossfit.R (.Names: 4) MRTAnalysis/tests/testthat/test-dcee-numeric-golden-lm.R (.Names: 4) MRTAnalysis/tests/testthat/test-dcee-numeric-golden-other-learners.R (.Names: 8) '.Names' should be changed to 'names'.
- NOTE8 OK, 5 NOTE2026-09-08
- ERROR8 OK, 4 NOTE, 1 ERROR2026-09-07
- NOTE10 OK, 3 NOTE2026-07-16
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
Show 3 earlier changesHide 3 earlier changes
- OK13 OK2026-05-11
- WARNING12 OK, 1 WARNING2026-05-10
- OK14 OK2026-03-10
Documentation
- Help pages
- 57
- Examples that run
- 91%20 run in a plain check · 1 never run · 1 hold no code
- Exported functions with examples
- 100%
- Documented parameters
- 91%
- Return-value docs
- 100%
- Help pages citing references
- 4%
- Exploratory Analysis for Micro-Randomized Trial (MRT): Continuous Distal Outcomes HTML
- Primary and Secondary Analysis for Micro-Randomized Trial (MRT): Proximal Outcomes HTML
- Standardized Proximal Effect Size in MRTAnalysis HTML
- Time-Varying Causal Excursion Effect Mediation in MRT: Continuous Distal Outcomes
Downloads
Dependencies
Installing MRTAnalysis adds 30 packages (20 with compiled code, 25 MB of source tarballs). Heaviest: stringi 11 MB, Rcpp 1.8 MB, RcppEigen 1.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.4.1Latest
- 0.4.0
- 0.3.12025-11-05 · diff ↗
- 0.3.02025-09-09 · diff ↗ ·
added 12 exports
mcee, mcee_config_gam, mcee_config_glm, mcee_config_known, mcee_config_lm, mcee_config_maker, mcee_config_ranger, mcee_config_rf, mcee_config_sl, mcee_config_sl_user, mcee_general, mcee_userfit_nuisance - 0.2.0
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.1.22023-07-01 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.1.12023-03-11 · diff ↗
- 0.1.02023-03-06
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2023-03-06
- Total releases
- 8 / 3 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.2
- Bundled data
- 298 KB / 5 files
- Download size
- 727 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("MRTAnalysis")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.