carts: Simulation-Based Assessment of Covariate Adjustment in Randomized Trials

Monte Carlo simulation framework for different randomized clinical trial designs with a special emphasis on estimators based on covariate adjustment. The package implements regression-based covariate adjustment (Rosenblum & van der Laan (2010) <doi:10.2202/1557-4679.1138>) and a one-step estimator (Van Lancker et al (2024) <doi:10.48550/arXiv.2404.11150>) for trials with continuous, binary and count outcomes. The estimation of the minimum sample-size required to reach a specified statistical power for a given estimator uses bisection to find an initial rough estimate, followed by stochastic approximation (Robbins-Monro (1951) <doi:10.1214/aoms/1177729586>) to improve the estimate, and finally, a grid search to refine the estimate in the neighborhood of the current best solution.

Version: 0.1.0
Depends: R (≥ 4.1), lava (≥ 1.8.0)
Imports: data.table (≥ 1.14), logger (≥ 0.2.2), methods, progressr, R6 (≥ 2.5.1), survival, targeted (≥ 0.6), rlang
LinkingTo: Rcpp (≥ 1.0.11), RcppArmadillo
Suggests: future, tinytest, MASS, geepack, covr, pdftools, knitr, mets (≥ 1.3.4), rmarkdown, magick, pwr, pwrss
Published: 2025-11-13
DOI: 10.32614/CRAN.package.carts (may not be active yet)
Author: Benedikt Sommer [aut, cre], Klaus K. Holst [aut], Foroogh Shamsi [aut], Novo Nordisk A/S [cph]
Maintainer: Benedikt Sommer <benediktsommer92 at gmail.com>
BugReports: https://github.com/NovoNordisk-OpenSource/carts/issues
License: Apache License (≥ 2)
URL: https://novonordisk-opensource.github.io/carts/, https://github.com/NovoNordisk-OpenSource/carts
NeedsCompilation: yes
Materials: README, NEWS
CRAN checks: carts results

Documentation:

Reference manual: carts.html , carts.pdf
Vignettes: Getting started (source, R code)
Parametrization of the negative binomial and gamma distribution (source, R code)

Downloads:

Package source: carts_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=carts to link to this page.