Learn R Programming

⚠️There's a newer version (4.2.0) of this package.Take me there.

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, and survival 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

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,194

Version

3.5.1

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Friedrich Pahlke

Last Published

February 27th, 2024

Functions in rpact (3.5.1)

AnalysisResultsEnrichmentInverseNormal

Analysis Results Enrichment Inverse Normal
DatasetMeans

Dataset of Means
AnalysisResults

Basic Class for Analysis Results
ConditionalPowerResultsSurvival

Conditional Power Results Survival
ConditionalPowerResultsRates

Conditional Power Results Rates
Dataset

Dataset
AnalysisResultsMultiHypotheses

Basic Class for Analysis Results Multi-Hypotheses
AnalysisResultsMultiArmInverseNormal

Analysis Results Multi-Arm Inverse Normal
PerformanceScore

Performance Score
ClosedCombinationTestResults

Analysis Results Closed Combination Test
AnalysisResultsMultiArmFisher-class

Analysis Results Multi-Arm Fisher
DatasetRates

Dataset of Rates
PiecewiseSurvivalTime

Piecewise Exponential Survival Time
SimulationResultsEnrichmentSurvival

Class for Simulation Results Enrichment Survival
SimulationResultsEnrichmentRates

Class for Simulation Results Enrichment Rates
DatasetSurvival

Dataset of Survival Data
PlotSettings

Plot Settings
ConditionalPowerResults

Conditional Power Results
ConditionalPowerResultsEnrichmentMeans

Conditional Power Results Enrichment Means
ConditionalPowerResultsEnrichmentRates

Conditional Power Results Enrichment Rates
SimulationResultsMeans

Class for Simulation Results Means
PowerAndAverageSampleNumberResult

Power and Average Sample Number Result
SimulationResultsMultiArmRates

Class for Simulation Results Multi-Arm Rates
SimulationResultsMultiArmSurvival

Class for Simulation Results Multi-Arm Survival
SimulationResultsMultiArmMeans

Class for Simulation Results Multi-Arm Means
AnalysisResultsGroupSequential

Analysis Results Group Sequential
SimulationResultsSurvival

Class for Simulation Results Survival
StageResultsMultiArmRates

Stage Results Multi Arm Rates
SimulationResultsRates

Class for Simulation Results Rates
StageResultsMultiArmSurvival

Stage Results Multi Arm Survival
ConditionalPowerResultsMeans

Conditional Power Results Means
EventProbabilities

Event Probabilities
TrialDesignCharacteristics

Trial Design Characteristics
ParameterSet

Parameter Set
FieldSet

Field Set
TrialDesignConditionalDunnett

Conditional Dunnett Design
NumberOfSubjects

Number Of Subjects
as.data.frame.PowerAndAverageSampleNumberResult

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

Class for trial design sets.
as.data.frame.ParameterSet

Coerce Parameter Set to a Data Frame
as.data.frame.AnalysisResults

Coerce AnalysisResults to a Data Frame
dataEnrichmentMeans

Enrichment Dataset of Means
dataEnrichmentMeansStratified

Stratified Enrichment Dataset of Means
as251Normal

Algorithm AS 251: Normal Distribution
as251StudentT

Algorithm AS 251: Student T Distribution
StageResultsRates

Stage Results of Rates
StageResultsSurvival

Stage Results of Survival Data
as.data.frame.TrialDesignSet

Coerce Trial Design Set to a Data Frame
as.matrix.FieldSet

Coerce Field Set to a Matrix
dataMeans

One-Arm Dataset of Means
dataEnrichmentSurvival

Enrichment Dataset of Survival Data
dataMultiArmMeans

Multi-Arm Dataset of Means
SimulationResultsEnrichmentMeans

Class for Simulation Results Enrichment Means
dataEnrichmentSurvivalStratified

Stratified Enrichment Dataset of Survival Data
SimulationResults

Class for Simulation Results
getDesignConditionalDunnett

Get Design Conditional Dunnett Test
dataRates

One-Arm Dataset of Rates
dataSurvival

One-Arm Dataset of Survival Data
StageResultsEnrichmentRates

Stage Results Enrichment Rates
StageResultsEnrichmentMeans

Stage Results Enrichment Means
StageResultsMeans

Stage Results of Means
StageResults

Basic Stage Results
getDesignFisher

Get Design Fisher
TrialDesignPlanRates

Trial Design Plan Rates
SummaryFactory

Summary Factory
TrialDesign

Basic Trial Design
TrialDesignPlanSurvival

Trial Design Plan Survival
getClosedCombinationTestResults

Get Closed Combination Test Results
plotTypes

Get Available Plot Types
getLongFormat

Get Long Format
getLogLevel

Get Log Level
TrialDesignFisher

Fisher Design
getDesignGroupSequential

Get Design Group Sequential
TrialDesignPlanCountData

Trial Design Plan Count Data
StageResultsEnrichmentSurvival

Stage Results Enrichment Survival
StageResultsMultiArmMeans

Stage Results Multi Arm Means
TrialDesignPlanMeans

Trial Design Plan Means
TrialDesignGroupSequential

Group Sequential Design
getGroupSequentialProbabilities

Get Group Sequential Probabilities
TrialDesignInverseNormal

Inverse Normal Design
getNumberOfSubjects

Get Number Of Subjects
getDesignInverseNormal

Get Design Inverse Normal
rcmd

Get Object R Code
getParameterName

Get Parameter Name
getAccrualTime

Get Accrual Time
getAnalysisResults

Get Analysis Results
getDataset

Get Dataset
getParameterCaption

Get Parameter Caption
TrialDesignPlan

Basic Trial Design Plan
getLambdaStepFunction

Get Lambda Step Function
as.data.frame.TrialDesign

Coerce TrialDesign to a Data Frame
getDesignCharacteristics

Get Design Characteristics
getFinalPValue

Get Final P Value
getFinalConfidenceInterval

Get Final Confidence Interval
as.data.frame.StageResults

Coerce Stage Results to a Data Frame
as.data.frame.TrialDesignCharacteristics

Coerce TrialDesignCharacteristics to a Data Frame
getSampleSizeMeans

Get Sample Size Means
getPowerAndAverageSampleNumber

Get Power And Average Sample Number
getSampleSizeRates

Get Sample Size Rates
getPlotSettings

Get Plot Settings
dataEnrichmentRates

Enrichment Dataset of Rates
getPowerCounts

Get Power Counts
getPowerMeans

Get Power Means
getPerformanceScore

Get Performance Score
getConditionalPower

Get Conditional Power
getDesignSet

Get Design Set
as.data.frame.TrialDesignPlan

Coerce Trial Design Plan to a Data Frame
getClosedConditionalDunnettTestResults

Get Closed Conditional Dunnett Test Results
getPowerSurvival

Get Power Survival
getEventProbabilities

Get Event Probabilities
getPowerRates

Get Power Rates
getPiecewiseSurvivalTime

Get Piecewise Survival Time
getSampleSizeCounts

Get Sample Size Counts
getRepeatedPValues

Get Repeated P Values
dataEnrichmentRatesStratified

Stratified Enrichment Dataset of Rates
getData

Get Simulation Data
getConditionalRejectionProbabilities

Get Conditional Rejection Probabilities
getObservedInformationRates

Get Observed Information Rates
dataMultiArmSurvival

Multi-Arm Dataset of Survival Data
dataMultiArmRates

Multi-Arm Dataset of Rates
getOutputFormat

Get Output Format
getRawData

Get Simulation Raw Data for Survival
getRepeatedConfidenceIntervals

Get Repeated Confidence Intervals
AnalysisResultsMultiArm

Basic Class for Analysis Results Multi-Arm
AnalysisResultsFisher

Analysis Results Fisher
AnalysisResultsEnrichment

Basic Class for Analysis Results Enrichment
AnalysisResultsEnrichmentFisher

Analysis Results Enrichment Fisher
AccrualTime

Accrual Time
AnalysisResultsConditionalDunnett

Analysis Results Multi-Arm Conditional Dunnett
AnalysisResultsInverseNormal

Analysis Results Inverse Normal