Learn R Programming

RobinCar: ROBust estimation and INference for Covariate Adjustment in Randomized clinical trials

RobinCar is a package that allows for robust estimation and inference for treatment effects in randomized clinical trials when covariates are used at the design and/or analysis stages of the trial. Supported covariate-adaptive randomization schemes at the design phase are simple randomization, stratified permuted block randomization, biased coin randomization, and Pocock and Simon's minimization. Statistical methods at the analysis stage are model-assisted and assumption-lean, in accordance with FDA guidance on covariate adjustment. Publications describing the methods are listed here.

See also RobinCar2, which is a lite version of RobinCar and is supported by the ASA Biopharmaceutical Section Covariate Adjustment Scientific Working Group Software Subteam.

Authors

Ting Ye, Yanyao Yi, Marlena Bannick (maintainer), Yuhan Qian, and Faith Bian

Documentation

To view documentation about the functions, see the RobinCar website here: https://marlenabannick.com/RobinCar/. You will also find vignettes about how to use the functions.

Installation

RobinCar is now available on CRAN!

1. Install via CRAN

install.packages("RobinCar")

2. Install with devtools

To get the most recent version in development, you can install the package with devtools:

devtools::install_github("mbannick/RobinCar")

3. Clone repository

Or to download the package, you may clone the repository:

git clone https://github.com/mbannick/RobinCar.git

Publications

Here are publications and preprints that explain the methods in RobinCar:

Copy Link

Version

Install

install.packages('RobinCar')

Monthly Downloads

727

Version

1.1.0

License

MIT + file LICENSE

Maintainer

Marlena Bannick

Last Published

January 28th, 2026

Functions in RobinCar (1.1.0)

robincar_contrast

Estimate a treatment contrast
robincar_calibrate

Perform linear or joint calibration
robincar_logrank

Robust (potentially stratified) logrank adjustment
robincar_tte

Covariate adjustment for time to event data
robincar_mh

Estimate Mantel-Haenszel Risk Difference
robincar_glm

Covariate adjustment using generalized linear working model
robincar_linear

Covariate adjustment using linear working model
print.CalibrationResult

Print calibration result
%>%

Pipe operator
print.GLMModelResult

Print glm model result
data_gen

Data generation function from JRSS-B paper
data_gen2

Data generation function from covariate adjusted log-rank paper
print.ContrastResult

Print contrast result
car_ps

Generate Pocock-Simon minimization treatment assignments
car_pb

Generate permuted block treatment assignments
print.LinModelResult

Print linear model result
car_sr

Generate simple randomization treatment assignments
robincar_covhr

Covariate-adjusted estimators for time to event data
robincar_SL_median

BETA: Covariate adjustment using working models from the super learner libraries through the AIPW package with cross-fitting, with median adjustment.
robincar_SL

BETA: Covariate adjustment using working models from the super learner libraries through the AIPW package with cross-fitting.
robincar_coxscore

Robust cox score adjustment
print.MHResult

Print MH result
print.TTEResult

Print TTE result