Skip to content

trialr

0.1.6Package record

Clinical Trial Designs in 'rstan'

6packages depend
7.9Kdownloads / year
53.5%test coverage
13/13flavors OK

Overview

About

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: 40.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-29
  • ERROR12 OK, 1 ERROR2026-07-27
  • OK13 OK2026-06-09
Show 5 earlier changesHide 5 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-04-22
  • ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.1.6
READMEYes · 1,537 wordsVignettesYes · 9 · dynamicNEWSYes · 100% structured · does not mention 0.1.6Citation fileNo
Help pages
73includes a package overview page
Examples that run
49%23 run in a plain check · 24 never run
Exported functions with examples
85%
Documented parameters
100%
Return-value docs
87%
Help pages citing references
29%

Downloads

7.9K
CRAN downloads in the past year
Rank #4,989 · ~22/day · ~659/mo
Daily download trend is not available in this view yet.
59630 days
1.7K90 days
7.9K1 year
Compare downloads with other packages →
Also on569 r2u4 autocran

Repository

43Stars
11Forks
4Open issues
0Open PRs
0Releases
141Commits
5Commit identities
141 commits · Last activity 2023-10-15 · The default branch showed an older version (0.1.5.9001) than CRAN on 2026-10-22
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
8
Median days to close, 50 most recently updated closed PRs
14

Stars over time

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

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

Checks run against github.com/brockk/trialr on 2026-10-22.

Continuous integration (3)
GitHub ActionsR CMD check workflowTravis CI (config file)

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2023-10-15

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
26 external dependencies (excludes base and recommended)

Installing trialr adds 62 packages (31 with compiled code, 63 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.

Depends (3)
R >= 3.5.0methodsRcpp
Enhances (0)
none
Reverse dependencies
6direct
1indirect
Imports 6
Depends, Imports or LinkingTo, most downloaded first

People & History

People (2)
Author, Maintainer since 0.0.1 (2017)
Releases (14)

Pick two releases to compare their code metrics.

  • 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
    record
    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
    record
    2020-10-16 · diff ↗ ·
    added 3 exports
    efftox_priors, get_efftox_priors, stan_nbg
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.4
    record
    2020-04-06 · diff ↗
  • 0.1.3
    record
    2020-01-08 · diff ↗ ·
    added 5 exports
    eff_at_dose, n_at_dose, total_weight_at_dose, tox_at_dose, weights_at_dose
  • 0.1.2
    record
    2019-06-25 · diff ↗ ·
    added 9 exports
    augbin_2t_1a_fit, augbin_fit, binary_prob_success, prior_predictive_augbin_2t_1a, prob_success, rlkjcorr, stan_augbin, stan_augbin_demo, trialr_simulate
  • 0.1.1
    record
    2019-05-25 · diff ↗ ·
    added 13 exports
    careful_escalation, closest_to_target, crm_codified_dose_logistic, crm_dtps, crm_path_analysis, crm_prior_beliefs, dose_finding_fit, dose_finding_path_node, efftox_dtps_to_dataframe, efftox_path_analysis, parse_eff_tox_dose_finding_outcomes, prob_tox_exceeds, spread_paths
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.0
    record
    2019-04-21 · diff ↗ ·
    removed 8 exports
    crm_process, gather_samples.crm_fit, efftox_process, gather_samples.efftox_fit, peps2_run_sims, thallhierarchicalbinary_parameters_demo, stan_files, stanmodels
    added 3 exports
    parse_dose_finding_outcomes, stan_hierarchical_response_thall, stan_peps2
  • 0.0.7
    record
    2019-03-03 · diff ↗
Show 8 earlier eventsHide 8 earlier events
  • 0.0.6
    record
    2019-01-17 · diff ↗
  • 0.0.5
    record
    2018-11-12 · diff ↗
  • 0.0.4
    record
    2018-10-24 · diff ↗
  • 0.0.3
    record
    2018-08-09 · diff ↗
  • 0.0.2
    record
    2018-08-08 · diff ↗ ·
    added 11 exports
    df_parse_outcomes, stan_crm, crm_params, crm_fit, crm_process, gather_samples.crm_fit, efftox_fit, efftox_params, gather_samples.efftox_fit, stan_efftox, stan_efftox_demo
  • R
    R 3.5.0 released · 2018-04-23
  • 0.0.1
    record
    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

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 package has no citation file, so citation() returns this entry built from DESCRIPTION.

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-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, 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