RARtrials: Response Adaptive Randomization in Clinical Trials

RARtrials is designed for simulating some popular response-adaptive randomization methods in the literature with comparisons of each treatment group to a control group under no delay and delayed (time between treatment and outcome availability) scenarios. All the designs are based on one-sided tests with a choice from values of ‘upper’ and ‘lower’. The general assumption is that binary outcomes follow Binomial distributions, while continuous outcomes follow normal distributions. Additionally, the number of patients accrued in the population follows a Poisson process and users can specify the enrollment rate of patients enrolled in the trial.

Install RAR from CRAN with:

install.packages('RAR')

Alternatively, install the RAR package from github with:

#install.packages('devtools')
devtools::install_github("yayayaoyaoyao/RARtrials")

Usage

There are two main groups of functions: those for simulating trials, which begin with sim_, and other functions that constitute the code for sim_ with varying names. Functions included in this R package are as follows: