trialr: Clinical Trial Designs in 'RStan'

A showcase of Bayesian clinical trial designs, implemented in 'RStan' and R. Some designs are implemented in R for the first time (e.g. 'EffTox' by Thall and Cook, 2004, <>). Given the emphasis on flexibility in Bayesian analysis, the implementations in a common language and style may serve as a cookbook to encourage the use of Bayesian methods in trials. Compiled 'RStan' models are provided in addition to helper classes and functions to perform simulations and inference on observed trial outcomes. There is a preponderance of early phase trial designs because this is where Bayesian methods are used most. If there is a published Bayesian design you want implemented in 'Stan', get in touch.

Version: 0.0.3
Depends: R (≥ 3.0.2), Rcpp (≥ 0.12.8), methods (≥ 3.3.2)
Imports: rstan (≥ 2.12.1), rstantools (≥ 1.1.0), loo (≥ 1.1.0), gtools, stringr, dplyr, tidyr, magrittr, ggplot2
LinkingTo: StanHeaders (≥, rstan (≥ 2.12.1), BH (≥, Rcpp (≥ 0.12.8), RcppEigen (≥
Suggests: knitr, rmarkdown, ggridges, testthat
Published: 2018-08-09
Author: Kristian Brock [aut, cre], Trustees of Columbia University [cph]
Maintainer: Kristian Brock <kristian.brock at>
License: GPL-3
NeedsCompilation: yes
Materials: README NEWS
CRAN checks: trialr results


Reference manual: trialr.pdf
Vignettes: BEBOP: Bayesian Evaluation of Bivariate Binary Outcomes and Predictive Information
Vignette Title
Vignette Title
EffTox in trialr
Hierarchical Bayesian Model for Binary Responses
Vignette Title
Package source: trialr_0.0.3.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X binaries: r-release: trialr_0.0.3.tgz, r-oldrel: trialr_0.0.3.tgz
Old sources: trialr archive


Please use the canonical form to link to this page.