Skip to content

MRTAnalysis

0.4.1

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

0packages depend
3.6Kdownloads / year
60.1%test coverage
8/13checks pass

Overview

About
Maintained by Tianchen QianFirst published 2023-03-068 releasesCRAN page ↗

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.

Install

Health

CRAN checks
5NOTE8OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
Slowest check: 5.4 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.50
60.1%
Coverage · measured lines
100%
Documentation · exports
8
Dependencies · direct
Check history
  • NOTE2026-07-16
    10 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-11
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-05-10
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 343 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
95%
Documented parameters
91%
Return-value docs
100%
References docs
4%

Downloads

3.6K
CRAN downloads in the past year
Rank #16,071 · ~10/day · ~298/mo
Daily download trend is not available in this view yet.
18330 days
65890 days
3.6K1 year
Compare downloads with other packages →
Also on145 r2u

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.2
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (5)
Author, Maintainer
Author · added in 0.4.0
Author · added in 0.4.0
Contributors (1)
Contributor
Package Timeline

8 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.1Latest
    2026-01-24 · current release · diff ↗
  • 0.4.0
    2026-01-24 · diff ↗
  • 0.3.1
    2025-11-05 · diff ↗
  • 0.3.0
    2025-09-09 · diff ↗
  • 0.2.0
    2025-08-29 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.2
    2023-07-01 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.1
    2023-03-11 · diff ↗
  • 0.1.0
    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
Installed size
not tracked yet
With dependencies
not tracked yet

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 is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, 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