Documentation for R package ‘rpact’

Help Pages

‘rpact’ version 3.3.1

rpact-package rpact - Confirmatory Adaptive Clinical Trial Design and Analysis
getAccrualTime Get Accrual Time
getAnalysisResults Get Analysis Results
getAvailablePlotTypes Get Available Plot Types
getClosedCombinationTestResults Get Closed Combination Test Results
getClosedConditionalDunnettTestResults Get Closed Conditional Dunnett Test Results
getConditionalPower Get Conditional Power
getConditionalRejectionProbabilities Get Conditional Rejection Probabilities
getData Get Simulation Data
getData.SimulationResults Get Simulation Data
getDataSet Get Dataset
getDataset Get Dataset
getDesignCharacteristics Get Design Characteristics
getDesignConditionalDunnett Get Design Conditional Dunnett Test
getDesignFisher Get Design Fisher
getDesignGroupSequential Get Design Group Sequential
getDesignInverseNormal Get Design Inverse Normal
getDesignSet Get Design Set
getEventProbabilities Get Event Probabilities
getFinalConfidenceInterval Get Final Confidence Interval
getFinalPValue Get Final P Value
getGroupSequentialProbabilities Get Group Sequential Probabilities
getHazardRatioByPi Survival Helper Functions for Conversion of Pi, Lambda, Median
getLambdaByMedian Survival Helper Functions for Conversion of Pi, Lambda, Median
getLambdaByPi Survival Helper Functions for Conversion of Pi, Lambda, Median
getMedianByLambda Survival Helper Functions for Conversion of Pi, Lambda, Median
getMedianByPi Survival Helper Functions for Conversion of Pi, Lambda, Median
getNumberOfSubjects Get Number Of Subjects
getObjectRCode Get Object R Code
getObservedInformationRates Get Observed Information Rates
getOutputFormat Get Output Format
getPiByLambda Survival Helper Functions for Conversion of Pi, Lambda, Median
getPiByMedian Survival Helper Functions for Conversion of Pi, Lambda, Median
getPiecewiseExponentialDistribution The Piecewise Exponential Distribution
getPiecewiseExponentialQuantile The Piecewise Exponential Distribution
getPiecewiseExponentialRandomNumbers The Piecewise Exponential Distribution
getPiecewiseSurvivalTime Get Piecewise Survival Time
getPowerAndAverageSampleNumber Get Power And Average Sample Number
getPowerMeans Get Power Means
getPowerRates Get Power Rates
getPowerSurvival Get Power Survival
getRawData Get Simulation Raw Data for Survival
getRepeatedConfidenceIntervals Get Repeated Confidence Intervals
getRepeatedPValues Get Repeated P Values
getSampleSizeMeans Get Sample Size Means
getSampleSizeRates Get Sample Size Rates
getSampleSizeSurvival Get Sample Size Survival
getSimulationEnrichmentMeans Get Simulation Enrichment Means
getSimulationEnrichmentRates Get Simulation Enrichment Rates
getSimulationEnrichmentSurvival Get Simulation Enrichment Survival
getSimulationMeans Get Simulation Means
getSimulationMultiArmMeans Get Simulation Multi-Arm Means
getSimulationMultiArmRates Get Simulation Multi-Arm Rates
getSimulationMultiArmSurvival Get Simulation Multi-Arm Survival
getSimulationRates Get Simulation Rates
getSimulationSurvival Get Simulation Survival
getStageResults Get Stage Results
getTestActions Get Test Actions
kable Create tables in Markdown
kable.ParameterSet Create output in Markdown
plot.AnalysisResults Analysis Results Plotting
plot.Dataset Dataset Plotting
plot.EventProbabilities Event Probabilities Plotting
plot.NumberOfSubjects Number Of Subjects Plotting
plot.ParameterSet Parameter Set Plotting
plot.SimulationResults Simulation Results Plotting
plot.StageResults Stage Results Plotting
plot.SummaryFactory Summary Factory Plotting
plot.TrialDesign Trial Design Plotting
plot.TrialDesignPlan Trial Design Plan Plotting
plot.TrialDesignSet Trial Design Set Plotting
plotTypes Get Available Plot Types
ppwexp The Piecewise Exponential Distribution
qpwexp The Piecewise Exponential Distribution
rcmd Get Object R Code
readDataset Read Dataset
readDatasets Read Multiple Datasets
rpact rpact - Confirmatory Adaptive Clinical Trial Design and Analysis
rpwexp The Piecewise Exponential Distribution
setOutputFormat Set Output Format
testPackage Test Package
utilitiesForPiecewiseExponentialDistribution The Piecewise Exponential Distribution
utilitiesForSurvivalTrials Survival Helper Functions for Conversion of Pi, Lambda, Median
writeDataset Write Dataset
writeDatasets Write Multiple Datasets

‘rpact’ Example Datasets

dataEnrichmentMeans Enrichment Dataset of Means
dataEnrichmentMeansStratified Stratified Enrichment Dataset of Means
dataEnrichmentRates Enrichment Dataset of Rates
dataEnrichmentRatesStratified Stratified Enrichment Dataset of Rates
dataEnrichmentSurvival Enrichment Dataset of Survival Data
dataEnrichmentSurvivalStratified Stratified Enrichment Dataset of Survival Data
dataMeans One-Arm Dataset of Means
dataMultiArmMeans Multi-Arm Dataset of Means
dataMultiArmRates Multi-Arm Dataset of Rates
dataMultiArmSurvival Multi-Arm Dataset of Survival Data
dataRates One-Arm Dataset of Rates
dataSurvival One-Arm Dataset of Survival Data
rawDataTwoArmNormal Raw Dataset Of A Two Arm Continuous Outcome With Covariates


Presentation for the U.S. Food and Drug Administration (FDA), March 3, 2022, 9:00am - 11:00am…

Mar -

Online Training Course for PPD, January 13, 2022.

Jan -




“rpact is by far the easiest to use.”
(Professor Daniel Lakens, Human-Technology Interaction Group, Eindhoven University of Technology, The Netherlands)



“We regularly use rpact for the design of group-sequential and adaptive trials at our company. The package is continuously evolving and includes state-of-the-art methods such as estimation of…



“[…] it is an incredibly accessible and useful tool for sequential analyses. […] I think your rpact package and shiny app might be a bit of a game-changer on this front, as it makes the required…