Description
Primary and Secondary Analyses for Micro-Randomized Trials.
Description
Estimates marginal causal excursion effects and moderated causal excursion effects for micro-randomized trial (MRT). Applicable to MRT with binary treatment options and continuous or binary outcomes. The method for MRT with continuous outcomes is the weighted centered least squares (WCLS) by Boruvka et al. (2018) <doi:10.1080/01621459.2017.1305274>. The method for MRT with binary outcomes is the estimator for marginal excursion effect (EMEE) by Qian et al. (2021) <doi:10.1093/biomet/asaa070>.
README.md
MRTanalaysis
This package provides functions to conduct primary analysis (estimating marginal causal excursion effect and moderated causal excursion effect) for Micro-randomized Trials with continuous or binary outcomes.
Please read the vignettes for details on how to use this package.
The main functions are the following:
- wcls(): Primary analysis for continuous outcome. This is an implementation of the weighted and centered least squares method (the k=1 special case of Boruvka, A., Almirall, D., Witkiewitz, K., & Murphy, S. A. (2018). Assessing time-varying causal effect moderation in mobile health. Journal of the American Statistical Association, 113(523), 1112-1121.)
- emee(): Primary analysis for binary outcome. This is an implementation of the estimator for marginal excursion effect method (the Delta=1 special case of Qian, T., Yoo, H., Klasnja, P., Almirall, D., & Murphy, S. A. (2021). Estimating time-varying causal excursion effects in mobile health with binary outcomes. Biometrika, 108(3), 507-527.)
Additional functions that can be useful:
- emee2(): Primary analysis for binary outcome. This is a slightly altered version of emee(), where the treatment assignment indicator is also centered in the residual term. It would have similar (but not exactly the same) numerical output as emee(). This is the estimator based on which the sample size calculator for binary outcome MRT is developed. (See R package MRTSampleSizeBinary.)