Learn R Programming

rpact

Confirmatory Adaptive Clinical Trial Design, Simulation, and Analysis.

Functional Range

  • Fixed sample design and designs with interim analysis stages
  • Sample size and power calculation for
    • means (continuous endpoint)
    • rates (binary endpoint)
    • survival trials with flexible recruitment and survival time options
    • count data
  • Simulation tool for means, rates, survival data, and count data
    • Assessment of adaptive sample size/event number recalculations based on conditional power
    • Assessment of treatment selection strategies in multi-arm trials
  • Adaptive analysis of means, rates, and survival data
  • Adaptive designs and analysis for multi-arm trials
  • Adaptive analysis and simulation tools for enrichment design testing means, rates, and hazard ratios
  • Automatic boundary recalculations during the trial for analysis with alpha spending approach, including under- and over-running

Installation

Install the latest CRAN release via

install.packages("rpact")

Development version

To use a feature from the development version, you can install the development version of rpact from GitHub.

# install.packages("pak")
pak::pak("rpact-com/rpact")

Documentation

The documentation is hosted at www.rpact.org

Vignettes

The vignettes are hosted at www.rpact.org/vignettes

RPACT Connect

Connecting you to insights, downloads, and premium support: connect.rpact.com

The RPACT User Group

The rpact project has an active user group consisting of decision-makers and users from the pharmaceutical industry and CROs, who meet regularly and, e.g., discuss best practices.

We invite you to be part of the RPACT User Group: benefit from know-how, shape open source development in Pharma!

Use on corporate computer systems

Please contact us to learn how to use rpact on FDA/GxP-compliant validated corporate computer systems and how to get a copy of the formal validation documentation that is customized and licensed for exclusive use by your company, e.g., to fulfill regulatory requirements. The validation documentation contains the personal access data for performing the installation qualification with testPackage().

www.rpact.com/contact

About

  • rpact is a comprehensive validated[^1] R package for clinical research which
    • enables the design and analysis of confirmatory adaptive group sequential designs
    • is a powerful sample size calculator
    • is a free of charge open-source software licensed under LGPL-3
    • particularly, implements the methods described in the recent monograph by Wassmer and Brannath (2016)

For more information please visit www.rpact.org

  • RPACT is a company which offers
    • enterprise R/Shiny software development services
    • technical support for the rpact package
    • consultancy and user training for scientists using R
    • validated software solutions and R package development for clinical research

For more information please visit www.rpact.com

[^1]: The rpact validation documentation is available exclusively for our customers and supporting members. For more information visit www.rpact.com/services/sla

Copy Link

Version

Install

install.packages('rpact')

Monthly Downloads

1,301

Version

4.2.1

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Friedrich Pahlke

Last Published

July 24th, 2025

Functions in rpact (4.2.1)

ConditionalPowerResultsMeans

Conditional Power Results Means
ClosedCombinationTestResults

Analysis Results Closed Combination Test
ConditionalPowerResultsEnrichmentMeans

Conditional Power Results Enrichment Means
ConditionalPowerResultsSurvival

Conditional Power Results Survival
AnalysisResultsMultiHypotheses

Basic Class for Analysis Results Multi-Hypotheses
AnalysisResultsMultiArmInverseNormal

Analysis Results Multi-Arm Inverse Normal
DatasetSurvival

Dataset of Survival Data
DatasetRates

Dataset of Rates
Dataset

Dataset
EventProbabilities

Event Probabilities
SimulationResults

Class for Simulation Results
NumberOfSubjects

Number Of Subjects
ParameterSet

Parameter Set
SimulationResultsCountData

Class for Simulation Results Count Data
PiecewiseSurvivalTime

Piecewise Exponential Survival Time
PerformanceScore

Performance Score
PlotSettings

Plot Settings
FieldSet

Field Set
PowerAndAverageSampleNumberResult

Power and Average Sample Number Result
InstallationQualificationResult

Installation Qualification Result Object
DatasetMeans

Dataset of Means
MarkdownReporter

Markdown Reporter for Test Results
SimulationResultsEnrichmentMeans

Class for Simulation Results Enrichment Means
SimulationResultsEnrichmentRates

Class for Simulation Results Enrichment Rates
StageResultsEnrichmentSurvival

Stage Results Enrichment Survival
SimulationResultsMultiArmMeans

Class for Simulation Results Multi-Arm Means
SimulationResultsMeans

Class for Simulation Results Means
SimulationResultsMultiArmRates

Class for Simulation Results Multi-Arm Rates
StageResultsMeans

Stage Results of Means
TrialDesignConditionalDunnett

Conditional Dunnett Design
TrialDesignFisher

Fisher Design
StageResultsRates

Stage Results of Rates
StageResultsEnrichmentMeans

Stage Results Enrichment Means
StageResultsEnrichmentRates

Stage Results Enrichment Rates
SimulationResultsEnrichmentSurvival

Class for Simulation Results Enrichment Survival
StageResultsMultiArmSurvival

Stage Results Multi Arm Survival
TrialDesignGroupSequential

Group Sequential Design
SimulationResultsMultiArmSurvival

Class for Simulation Results Multi-Arm Survival
SimulationResultsRates

Class for Simulation Results Rates
TrialDesign

Basic Trial Design
TrialDesignCharacteristics

Trial Design Characteristics
TrialDesignInverseNormal

Inverse Normal Design
TrialDesignPlanMeans

Trial Design Plan Means
StageResults

Basic Stage Results
SimulationResultsSurvival

Class for Simulation Results Survival
TrialDesignSet

Class for trial design sets.
StageResultsSurvival

Stage Results of Survival Data
TrialDesignPlanSurvival

Trial Design Plan Survival
as251StudentT

Algorithm AS 251: Student T Distribution
checkInstallationQualificationStatus

Check Installation Qualification Status
as.data.frame.AnalysisResults

Coerce AnalysisResults to a Data Frame
TrialDesignPlanRates

Trial Design Plan Rates
as.data.frame.TrialDesign

Coerce TrialDesign to a Data Frame
as.data.frame.TrialDesignCharacteristics

Coerce TrialDesignCharacteristics to a Data Frame
StageResultsMultiArmMeans

Stage Results Multi Arm Means
as.data.frame.ParameterSet

Coerce Parameter Set to a Data Frame
StageResultsMultiArmRates

Stage Results Multi Arm Rates
TrialDesignPlan

Basic Trial Design Plan
as.data.frame.PowerAndAverageSampleNumberResult

Coerce Power And Average Sample Number Result to a Data Frame
dataMeans

One-Arm Dataset of Means
TrialDesignPlanCountData

Trial Design Plan Count Data
dataMultiArmMeans

Multi-Arm Dataset of Means
dataEnrichmentRates

Enrichment Dataset of Rates
plotTypes

Get Available Plot Types
dataEnrichmentMeansStratified

Stratified Enrichment Dataset of Means
dataEnrichmentMeans

Enrichment Dataset of Means
getAnalysisResults

Get Analysis Results
dataEnrichmentRatesStratified

Stratified Enrichment Dataset of Rates
SummaryFactory

Summary Factory
as.matrix.FieldSet

Coerce Field Set to a Matrix
dataRates

One-Arm Dataset of Rates
dataSurvival

One-Arm Dataset of Survival Data
as.data.frame.StageResults

Coerce Stage Results to a Data Frame
getClosedCombinationTestResults

Get Closed Combination Test Results
as251Normal

Algorithm AS 251: Normal Distribution
getClosedConditionalDunnettTestResults

Get Closed Conditional Dunnett Test Results
dataMultiArmSurvival

Multi-Arm Dataset of Survival Data
dataMultiArmRates

Multi-Arm Dataset of Rates
dataEnrichmentSurvival

Enrichment Dataset of Survival Data
as.data.frame.TrialDesignSet

Coerce Trial Design Set to a Data Frame
as.data.frame.TrialDesignPlan

Coerce Trial Design Plan to a Data Frame
dataEnrichmentSurvivalStratified

Stratified Enrichment Dataset of Survival Data
getDesignFisher

Get Design Fisher
obtain

Extract a single parameter
getDesignGroupSequential

Get Design Group Sequential
getAccrualTime

Get Accrual Time
getData

Get Simulation Data
getDesignSet

Get Design Set
getDesignInverseNormal

Get Design Inverse Normal
getDataset

Get Dataset
getDesignConditionalDunnett

Get Design Conditional Dunnett Test
getDesignCharacteristics

Get Design Characteristics
enableStartupMessages

Enable Startup Messages
getConditionalPower

Get Conditional Power
rcmd

Get Object R Code
getConditionalRejectionProbabilities

Get Conditional Rejection Probabilities
disableStartupMessages

Disable Startup Messages
getLambdaStepFunction

Get Lambda Step Function
getNumberOfSubjects

Get Number Of Subjects
getLogLevel

Get Log Level
getLongFormat

Get Long Format
getEventProbabilities

Get Event Probabilities
getFinalConfidenceInterval

Get Final Confidence Interval
getGroupSequentialProbabilities

Get Group Sequential Probabilities
getFinalPValue

Get Final P Value
getPerformanceScore

Get Performance Score
getOutputFormat

Get Output Format
getParameterCaption

Get Parameter Caption
getParameterName

Get Parameter Name
getParameterType

Get Parameter Type
getPiecewiseSurvivalTime

Get Piecewise Survival Time
getPowerCounts

Get Power Counts
getPowerMeans

Get Power Means
getObservedInformationRates

Get Observed Information Rates
getPowerAndAverageSampleNumber

Get Power And Average Sample Number
getPlotSettings

Get Plot Settings
getSampleSizeRates

Get Sample Size Rates
getSampleSizeMeans

Get Sample Size Means
getRawData

Get Simulation Raw Data for Survival
getRepeatedConfidenceIntervals

Get Repeated Confidence Intervals
getSimulationCounts

Get Simulation Counts
getSampleSizeSurvival

Get Sample Size Survival
getPowerRates

Get Power Rates
getPowerSurvival

Get Power Survival
getSampleSizeCounts

Get Sample Size Counts
getRepeatedPValues

Get Repeated P Values
AnalysisResultsConditionalDunnett

Analysis Results Multi-Arm Conditional Dunnett
AnalysisResultsMultiArm

Basic Class for Analysis Results Multi-Arm
AnalysisResultsGroupSequential

Analysis Results Group Sequential
AnalysisResultsFisher

Analysis Results Fisher
AccrualTime

Accrual Time
AnalysisResultsEnrichmentFisher

Analysis Results Enrichment Fisher
AnalysisResultsEnrichmentInverseNormal

Analysis Results Enrichment Inverse Normal
AnalysisResults

Basic Class for Analysis Results
AnalysisResultsInverseNormal

Analysis Results Inverse Normal
AnalysisResultsEnrichment

Basic Class for Analysis Results Enrichment
ConditionalPowerResultsEnrichmentRates

Conditional Power Results Enrichment Rates
ConditionalPowerResults

Conditional Power Results
AnalysisResultsMultiArmFisher

Analysis Results Multi-Arm Fisher
ConditionalPowerResultsRates

Conditional Power Results Rates