Package: carts 0.2.0

Benedikt Sommer

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.

Authors:Benedikt Sommer [aut, cre], Klaus K. Holst [aut], Foroogh Shamsi [aut]

carts_0.2.0.tar.gz
carts_0.2.0.zip(r-4.7-x86_64)carts_0.2.0.zip(r-4.7-arm64)carts_0.2.0.zip(r-4.6-x86_64)carts_0.2.0.zip(r-4.6-arm64)
carts_0.2.0.tar.gz(r-4.7-arm64)carts_0.2.0.tar.gz(r-4.7-x86_64)carts_0.2.0.tar.gz(r-4.6-arm64)carts_0.2.0.tar.gz(r-4.6-x86_64)
carts_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
carts/json (API)

# Install 'carts' in R:
install.packages('carts', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/novonordisk-opensource/carts/issues

Pkgdown/docs site:https://novonordisk-opensource.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

openblascpp

3.30 score 344 downloads 24 exports 27 dependencies

Last updated from:9c4f200b28. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK168
linux-devel-x86_64OK213
source / vignettesOK242
linux-release-arm64OK177
linux-release-x86_64OK207
windows-devel-arm64OK301
windows-devel-x86_64OK225
windows-release-arm64OK298
windows-release-x86_64OK203
wasm-releaseOK105

Exports:%join%aggrsurvappend<-covar_addcovar_bootstrapcovar_joincovar_loggammacovar_normalderive_covar_distributionest_adjest_geeest_geebinest_glmest_glmbinestimate_covar_model_full_condoutcome_binaryoutcome_continuousoutcome_countrmvnrnbsample_covar_parametric_modelsetallargssetargsTrial

Dependencies:abindclicodetoolsdata.tabledigestfuturefuture.applyglobalslatticelavalistenvloggerMatrixmetsmvtnormnumDerivparallellyprogressrquadprogR6RcppRcppArmadillorlangSQUAREMsurvivaltargetedtimereg

Getting started
Introduction | Preliminaries | Setting up parallel computations | Progress bars and logging information | Reproducibility | Two-armed parallel design | Trial model | Trial simulation | Updating model parameters | Safeguarding parameter clashes | Updating default parameters of a trial model | Estimators | Power estimation | Hypothesis testing | Multiple estimators | Sample-size estimations

Last update: 2025-11-13
Started: 2025-11-13

Parametrization of the negative binomial and gamma distribution
Bibliography

Last update: 2025-11-13
Started: 2025-11-13

Readme and manuals

Help Manual

Help pageTopics
Aggregate data in counting process formataggrsurv
Assignment function to append values to existing listappend<- append<-.list
Root finding by bisectionbisection
Add additional covariates to existing list of covariatescovar_add
Sample from empirical distribution of covariate datacovar_bootstrap
Add additional covariates to existing covariate random generator%join% covar_join join_covar
Simulate from a log gamma-gaussian copula distributioncovar_loggamma
Simulate from multivariate normal distributioncovar_normal
Derive covariate distribution from covariate data typederive_covar_distribution
Construct estimator for the treatment effect in RCT based on covariate adjustmentest_adj
Construct estimator for the treatment effect in RCTest_gee est_geebin est_glm est_glmbin
Marginal Cox proportional hazards model for the treatment effect in RCTest_phreg
Full conditional covariate simulation modelestimate_covar_model_full_cond
Get levels for factor columns in data.tableget_factor_levels
Root solver by Stochastic Approximationoptim_sa
Simulate from binary model given covariatesoutcome_binary
Simulate from continuous outcome model given covariatesoutcome_continuous
Simulate from count model given covariatesoutcome_count
Outcome model for time-to-event end-points (proportional hazards)outcome_phreg
EXPERIMENTAL: Outcome model for recurrent events with terminal events end-pointsoutcome_recurrent
Multivariate normal distribution functionrmvn
Simulate from a negative binomial distributionrnb
Sample from an estimated parametric covariate modelsample_covar_parametric_model
Set default arguments of a functionsetallargs setargs
R6 class for power and sample-size calculations for a clinical trialTrial
trial.estimates class objecttrial.estimates-class