Learn R Programming

MRStdLCRT (version 0.1.1)

Model-Robust Standardization for Longitudinal Cluster-Randomized Trials

Description

Provides estimation and leave-one-cluster-out jackknife standard errors for four longitudinal cluster-randomized trial estimands: horizontal individual average treatment effect (h-iATE), horizontal cluster average treatment effect (h-cATE), vertical individual average treatment effect (v-iATE), and vertical cluster-period average treatment effect (v-cATE), using unadjusted and augmented (model-robust standardization) estimators. The working model may be fit using linear mixed models for continuous outcomes or generalized estimating equations and generalized linear mixed models for binary outcomes. Period inclusion for aggregation is determined automatically: only periods with both treated and control clusters are included in the construction of the marginal means and treatment effect contrasts. See Fang et al. (2025) .

Copy Link

Version

Install

install.packages('MRStdLCRT')

Version

0.1.1

License

MIT + file LICENSE

Maintainer

Xi Fang

Last Published

March 1st, 2026

Functions in MRStdLCRT (0.1.1)

mrstdlcrt_fit

Model-robust standardization for longitudinal cluster-randomized trials
plot.mrs

Plot estimates from an mrs fit
print.mrs

Print method for mrs objects
summary.mrs

Summarize an mrs fit
xo_c

Example crossover cluster-randomized trial dataset with continuous outcome
xo_b

Example crossover cluster-randomized trial dataset with binary outcome
sw_b

Example stepped wedge CRT dataset with binary outcome
sw_c

Example of stepped wedge CRT dataset for continuous outcome