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 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.1
Depends: R (≥ 3.0.2), Rcpp (≥ 0.12.8), methods (≥ 3.3.2)
Imports: rstan (≥ 2.12.1), rstantools (≥ 1.1.0), gtools
LinkingTo: StanHeaders (≥, rstan (≥ 2.12.1), BH (≥, Rcpp (≥ 0.12.8), RcppEigen (≥
Suggests: knitr, rmarkdown, ggplot2
Published: 2017-11-21
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
EffTox in trialr
Hierarchical Bayesian Model for Binary Responses
Package source: trialr_0.0.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X binaries: r-release: trialr_0.0.1.tgz, r-oldrel: trialr_0.0.1.tgz


Please use the canonical form to link to this page.