Skip to content

trialr

0.1.6

Clinical Trial Designs in 'rstan'

6packages depend
8.3Kdownloads / year
53.5%test coverage
13/13checks pass

Overview

About
Maintained by Kristian BrockFirst published 2017-11-2114 releasesCRAN page ↗GitHub ↗

A collection of clinical trial designs and methods, implemented in 'rstan' and R, including: the Continual Reassessment Method by O'Quigley et al. (1990) doi:10.2307/2531628; EffTox by Thall & Cook (2004) doi:10.1111/j.0006-341X.2004.00218.x; the two-parameter logistic method of Neuenschwander, Branson & Sponer (2008) doi:10.1002/sim.3230; and the Augmented Binary method by Wason & Seaman (2013) doi:10.1002/sim.5867; and more. We provide functions to aid model-fitting and analysis. The 'rstan' implementations may also serve as a cookbook to anyone looking to extend or embellish these models. We hope that this package encourages the use of Bayesian methods in clinical trials. There is a preponderance of early phase trial designs because this is where Bayesian methods are used most. If there is a method you would like implemented, please get in touch.

Install

Health

CRAN checks
13OK
Slowest check: 35.5 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.53
53.5%
Coverage · measured lines
100%
Documentation · exports
16
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-29
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-07-27
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 5 earlier snapshots
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,537 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
49%
Documented parameters
100%
Return-value docs
87%
References docs
29%

Downloads

8.3K
CRAN downloads in the past year
Rank #4,535 · ~23/day · ~693/mo
Daily download trend is not available in this view yet.
39730 days
1.7K90 days
8.3K1 year
Compare downloads with other packages →
Also on563 r2u34 autocran

Repository

Repository
43Stars
11Forks
4Open issues
0Open PRs
0Releases
141Commits
5Contributors
141 commits · Last activity 2023-10-15

Stars over time

2025-05-08 · 432026-07-07 · 43

Repository practices

Upstream repositoryBeta

6 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/brockk/trialr on 2026-08-23.

Continuous integration (2)
GitHub ActionsTravis CI
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
26 external dependencies (excludes base and recommended)
Depends (3)
R >= 3.5.0methodsRcpp
Enhances (0)
none

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Copyright holders (1)
Package Timeline

14 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.6Latest
    2023-03-12 · current release · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.5
    2020-10-16 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.4
    2020-04-06 · diff ↗
  • 0.1.3
    2020-01-08 · diff ↗
  • 0.1.2
    2019-06-25 · diff ↗
  • 0.1.1
    2019-05-25 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.0
    2019-04-21 · diff ↗
  • 0.0.7
    2019-03-03 · diff ↗
Show 8 earlier events
  • 0.0.6
    2019-01-17 · diff ↗
  • 0.0.5
    2018-11-12 · diff ↗
  • 0.0.4
    2018-10-24 · diff ↗
  • 0.0.3
    2018-08-09 · diff ↗
  • 0.0.2
    2018-08-08 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.0.1
    2017-11-21
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-11-21
Total releases
14 / 9 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.5.0
Download size
2.6 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("trialr")
Brock, K., & Columbia University, T. o. (2023). trialr: Clinical Trial Designs in 'rstan' (Version 0.1.6) [Computer software]. https://doi.org/10.32614/CRAN.package.trialr

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for trialr version 0.1.6 [Data set]. HJJB, LLC. Data release v2026-08-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy