Learn R Programming

carat (version 2.3.0)

Covariate-Adaptive Randomization for Clinical Trials

Description

Provides functions and command-line user interface to generate allocation sequence by covariate-adaptive randomization for clinical trials. The package currently supports six covariate-adaptive randomization procedures. Three hypothesis testing methods that are valid and robust under covariate-adaptive randomization are also available in the package to facilitate the inference for treatment effect under the included randomization procedures. Additionally, the package provides comprehensive and efficient tools to allow one to evaluate and compare the performance of randomization procedures and tests based on various criteria. See Ma W, Ye X, Tu F, and Hu F (2023) for details.

Copy Link

Version

Install

install.packages('carat')

Monthly Downloads

315

Version

2.3.0

License

GPL (>= 2)

Maintainer

Fuyi Tu

Last Published

September 8th, 2026

Functions in carat (2.3.0)

StrPBR

Stratified Permuted Block Randomization
PocSimMIN.sim

Pocock and Simon's Method in the Two-Arms Case with Covariate Data Generating Mechanism
StrPBR.sim

Stratified Permuted Block Randomization with Covariate Data Generating Mechanism
boot.test

Bootstrap t-test
StrPBR.ui

Command-line User Interface Using Stratified Permuted Block Randomization with Two-Arms Case
StrBCD

Shao's Method in the Two-Arms Case
StrBCD.sim

Shao's Method in the Two-Arms Case with Covariate Data Generating Mechanism
StrBCD.ui

Command-line User Interface Using Shao's Method
evalRand

Evaluation of Randomization Procedures
rand.test

Randomization Test
getData

Data Generation
corr.test

Corrected t-test
evalPower

Evaluation of Tests and Randomization Procedures through Power
evalRand.sim

Evaluation Randomization Procedures with Covariate Data Generating Mechanism
pats

Data of Covariate Profile of Patients
compRand

Compare Different Randomization Procedures via Tables and Plots
carat-package

carat-package: Covariate-Adaptive Randomization for Clinical Trials
DoptBCD

Atkinson's \(D_A\)-optimal Biased Coin Design
HuHuCAR

Hu and Hu's General Covariate-Adaptive Randomization
DoptBCD.sim

Atkinson's \(D_A\)-optimal Biased Coin Design with Covariate Data Generating Mechanism
AdjBCD.sim

Covariate-adjusted Biased Coin Design with Covariate Data Generating Mechanism
DoptBCD.ui

Command-line User Interface Using Atkinson's \(D_A\)-optimal Biased Coin Design
HuHuCAR.sim

Hu and Hu's General Covariate-Adaptive Randomization with Covariate Data Generating Mechanism
compPower

Comparison of Powers for Different Tests under Different Randomization methods
HuHuCAR.ui

Command-line User Interface Using Hu and Hu's General Covariate-adaptive Randomization
AdjBCD

Covariate-adjusted Biased Coin Design
PocSimMIN

Pocock and Simon's Method in the Two-Arms Case
AdjBCD.ui

Command-line User Interface Using Covariate-adjusted Biased Coin Design
PocSimMIN.ui

Command-line User Interface Using Pocock and Simon's Procedure with Two-Arms Case