Skip to content

MRTAnalysis

0.4.1Package record

Assessing Proximal, Distal, and Mediated Causal Excursion Effects for Micro-Randomized Trials

0packages depend
3.2Kdownloads / year
60.1%test coverage
8/13flavors OK

Overview

About

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.

Changes in 0.4.1
  • Updated the standardized-effect-size vignette author list.

From NEWS.md in the release

Install

Health

CRAN checks
5NOTE8OK
Check messages
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'.

CRAN check page ↗

Slowest check: 5.4 min · r-oldrel-macos-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.4.1
READMEYes · 343 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 0.4.1Citation fileNoWebsitenot declared in DESCRIPTION
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%

Downloads

3.2K
CRAN downloads in the past year
Rank #15,800 · ~9/day · ~271/mo
Daily download trend is not available in this view yet.
28030 days
78890 days
3.2K1 year
Compare downloads with other packages →
Also on100 r2u

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.2
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (6)
Author, Maintainer since 0.1.0 (2023)
Author · added in 0.4.0
Author · added in 0.4.0
Contributor
Releases (8)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.1Latest
    record
    2026-01-24 · current release · diff ↗
  • 0.4.0
    record
    2026-01-24 · diff ↗ ·
    added 1 export
    calculate_mrt_effect_size
  • 0.3.1
    record
    2025-11-05 · diff ↗
  • 0.3.0
    record
    2025-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
    record
    2025-08-29 · diff ↗ ·
    added 1 export
    dcee
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.2
    record
    2023-07-01 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.1
    record
    2023-03-11 · diff ↗
  • 0.1.0
    record
    2023-03-06
  • R
    R 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")
Qian, T., Boruvka, A., Cheng, Z., Dziak, J., Song, X., & Xiang, S. (2026). MRTAnalysis: Assessing Proximal, Distal, and Mediated Causal Excursion Effects for Micro-Randomized Trials (Version 0.4.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for MRTAnalysis version 0.4.1 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy