The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

CRAN Task View: Clinical Trial Design, Monitoring, and Analysis

Maintainer:Ya Wang, Thomas Jaki, Laura Pascasio Harris, Orla Doyle, Elias Laurin Meyer, Wilmar Igl
Contact:ya.wang10 at gilead.com
Version:2025-09-04
URL:https://CRAN.R-project.org/view=ClinicalTrials
Source:https://github.com/cran-task-views/ClinicalTrials/
Contributions:Suggestions and improvements for this task view are very welcome and can be made through issues or pull requests on GitHub or via e-mail to the maintainer address. For further details see the Contributing guide.
Citation:Ya Wang, Thomas Jaki, Laura Pascasio Harris, Orla Doyle, Elias Laurin Meyer, Wilmar Igl (2025). CRAN Task View: Clinical Trial Design, Monitoring, and Analysis. Version 2025-09-04. URL https://CRAN.R-project.org/view=ClinicalTrials.
Installation:The packages from this task view can be installed automatically using the ctv package. For example, ctv::install.views("ClinicalTrials", coreOnly = TRUE) installs all the core packages or ctv::update.views("ClinicalTrials") installs all packages that are not yet installed and up-to-date. See the CRAN Task View Initiative for more details.

Get Started

This task view provides an overview of R packages relevant to the design, monitoring, and analysis of clinical trial data.

Packages are grouped in the following categories:

Here are several foundational books on clinical trial design and analysis that can help users gain a deeper understanding of the methods implemented in the relevant R packages:

In 2021, the R Foundation for Statistical Computing published the guidance document Regulatory Compliance and Validation Issues (A Guidance Document for the Use of R in Regulated Clinical Trial Environments), which outlines its consensus on the use of R in GxP-regulated environments. This document provides a structured framework to help end users align with internal procedures, fulfill documentation requirements, and comply with regulatory standards.

Inclusion Criteria

The packages included in this task view were carefully curated through a combination of expert recommendations from the pharmaceutical industry and academia, as well as an automated CRAN search using the pkgsearch::pkg_search() function. The search leveraged keywords aligned with our grouping categories, such as clinical trials, study design, adaptive design, sample size calculation, etc. Packages were considered within scope if they offered tools to facilitate the design, monitoring, or analysis of clinical trials.

Some task views may include packages that are also relevant to clinical trials and will be listed within the grouping categories. Please refer to task views ExperimentalDesign, Meta-analysis, MissingData, Pharmacokinetics, Survival for a more comprehensive list of R packages related to these topics. Note that while the Pharmacokinetics task view packages are closely related to clinical trials, they are not explicitly listed under the grouping categories in this task view to avoid duplication.

Contributions are always welcome and encouraged. You can contribute by emailing the maintainer directly or by submitting an issue or pull request in the GitHub repository linked above. For further details see the Contributing guide.

Design

Adaptive Designs

Bioequivalence

Dose-Finding

Factorial Designs

Group Sequential Designs

Randomization

Response Adaptive Randomization

Sample Size and Power Calculations

Simulation

Analysis

General Analysis

Longitudinal Data Analysis

Meta-Analysis

This task view focuses on packages relevant to clinical trials. For a more comprehensive list of packages on this topic, please refer to the Meta-analysis task view.

Missing Data Imputation

This task view focuses on packages relevant to clinical trials. For a more comprehensive list of packages on this topic, please refer to the MissingData task view.

Survival Analysis

This task view focuses on packages relevant to clinical trials. For a more comprehensive list of packages on this topic, please refer to the Survival task view.

Other Analysis for Specific Designs

Monitoring

CRAN packages

Core:adaptTest, asd, bcrm, blockrand, clinfun, dfcrm, experiment, ldbounds, longpower, PowerTOST, pwr, rpact, speff2trial, survival, TEQR, TrialSize.
Regular:accrualPlot, adaptDiag, adaptIVPT, adaptr, adestr, adpss, airship, ASSISTant, BAR, BayesCTDesign, BDP2, BOIN, brada, brms.mmrm, carat, CARM, cats, clinicalsignificance, clinsig, CohortPlat, coin, conf.design, cosa, covadap, crmPack, ctrdata, dfmta, DoseFinding, DTAT, epibasix, escalation, esDesign, eselect, ewoc, FrF2, glmmTMB, gMCP, graphicalMCP, grouprar, GroupSeq, gsDesign, gsMAMS, HH, iAdapt, lme4, logistf, lrstat, MABOUST, MAMS, MatchIt, MCPMod, Mediana, meta, metafor, metaLik, metasens, mice, MinEDfind, mmrm, monitOS, multcomp, NCC, netmeta, nlme, nphRCT, nppbib, OncoBayes2, PK, pocrm, PowerUpR, presize, PwrGSD, RABR, randomizeR, RARfreq, RBesT, rbmi, remiod, replicateBE, rmeta, rpsftm, SAME, samplesize, SEARS, seqmon, simglm, ssanv, TestDesign, ThreeGroups, UnifiedDoseFinding.
Archived:ipcwswitch, maic.

Related links

Other resources

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.