MRTAnalysis0.3.1 package

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

dcee

Distal Causal Excursion Effect (DCEE) Estimation

dot-mcee_assert_df

Assert that input is a data frame

dot-mcee_build_f_matrix

Build basis matrix f(t) from time-varying effect formula

dot-mcee_build_weights

Build per-row weights omega(i,t) for MCEE estimation

dot-mcee_check_binary_col

Validate binary column coding

dot-mcee_check_control_formula

Validate control formula excludes treatment and outcome

dot-mcee_check_dp_strictly_increasing

Check that decision points are strictly increasing within each subject

dot-mcee_check_formula_mediator

Check config formula for inclusion/exclusion of mediator

dot-mcee_check_id_rows_grouped

Check that rows for each subject appear in contiguous blocks

dot-mcee_check_no_missing_vars

Check data frame columns for missing/infinite values

dot-mcee_check_no_missing_vec

Check numeric vector for missing/infinite values

dot-mcee_check_outcome_constant_within_id

Check that outcome is constant within each subject (required for dista...

dot-mcee_check_time_varying_effect_form

Validate time-varying effect formula structure

dot-mcee_compact_model_info

Generate compact one-line description of nuisance model object

dot-mcee_core_rows

Numerical core implementing MCEE estimation mathematics

dot-mcee_default_family

Select default GLM family based on nuisance parameter type

dot-mcee_drop_var_from_rhs

Remove a variable from RHS-only formula

dot-mcee_fit_nuisance

Fit a single nuisance component with flexible learner support

dot-mcee_message_if_no_availability_provided

Print informative message if no availability column provided

dot-mcee_print_coef_table

Print formatted coefficient table for MCEE results

dot-mcee_require_cols

Check that required columns exist in data frame

dot-mcee_resolve_rand_prob

Resolve randomization probability from column name or scalar

dot-mcee_validate_clipping

Validate clipping bounds for probability predictions

dot-mcee_validate_method

Validate that learning method is supported

dot-mcee_vars_in_config

Extract variables from nuisance configuration formula

dot-mcee_vars_in_rhs

Extract variable names from RHS-only formula

emee

Estimates the causal excursion effect for binary outcome MRT

emee2

Estimates the causal excursion effect for binary outcome MRT

mcee_config_gam

Configure GAM for MCEE nuisance parameters

mcee_config_glm

Configure GLM for MCEE nuisance parameters

mcee_config_known

Configure known constant values for MCEE nuisance parameters

mcee_config_lm

Configure linear model for MCEE nuisance parameters

mcee_config_maker

Build a nuisance-configuration object for mcee_general()

mcee_config_ranger

Configure Ranger Random Forest for MCEE nuisance parameters

mcee_config_rf

Configure Random Forest for MCEE nuisance parameters

mcee_config_sl_user

Configure SuperLearner with user-specified library for MCEE nuisance p...

mcee_config_sl

Configure SuperLearner for MCEE nuisance parameters

mcee_general

Mediated Causal Excursion Effects (configurable nuisance models)

mcee_helper_2stage_estimation

Two-stage helper for mediated causal excursion effects (MCEE)

mcee_helper_stage1_fit_nuisance

Fit all nuisance models for MCEE Stage 1

mcee_helper_stage2_estimate_mcee

Stage-2 MCEE parameter estimation given nuisance predictions

mcee_userfit_nuisance

Mediated Causal Excursion Effects with user-supplied nuisance predicti...

mcee

Mediated Causal Excursion Effects for MRTs (streamlined)

print.summary.mcee_fit

Print method for summary of MCEE fits

summary.dcee_fit

Summary for DCEE fits

summary.emee_fit

Summarize Causal Excursion Effect Fits for MRT with Binary Outcomes

summary.mcee_fit

Summarize an mcee fit

summary.wcls_fit

Summarize Causal Excursion Effect Fits for MRT with Continuous Outcome...

wcls

Estimates the causal excursion effect for continuous outcome MRT

Provides methods to analyze micro-randomized trials (MRTs) with binary treatment options. Supports three 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.48550/arXiv.2502.13500>; and (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>.

  • Maintainer: Tianchen Qian
  • License: GPL-3
  • Last published: 2025-11-05