rpact is a comprehensive validated, open source, free-of-charge R software package for:
To install the latest rpact developer version, please follow the instructions described here.
Note that you or your organization must be an active RPACT SLA member to get access to the manual and the latest rpact developer version.
We recommend three ways to learn how to use rpact:
The vignettes are hosted at www.rpact.com/vignettes
The online documentation (help files) can be opened here: www.rpact.org/documentation
Additionally there are two different pdf versions of the manual available:
# load the package
library(rpact)
# display the manual of the package
help(package = "rpact")
# create an inverse normal design with default parameters
design <- getDesignInverseNormal()
# take a look at the design and its default values
design
# create a summary ouput of the design
summary(design)
# display the design characteristics
getDesignCharacteristics(design)
# plot the design with default type 1 (Boundary Plot)
plot(design)
# create an 'Average Sample Size and Power / Early Stop' plot
plot(design, type = 2, nMax = 12)# create a group sequential design
design <- getDesignGroupSequential(kMax = 4, alpha = 0.025,
informationRates = c(0.2, 0.5, 0.8, 1),
futilityBounds = rep(0.5244, 4 - 1),
typeOfDesign = "WT", deltaWT = 0.45)
# take a look at the design
design
# create a dataset of means
data <- getDataset(
n1 = c(22, 11, 22, 11),
n2 = c(22, 13, 22, 13),
means1 = c(1, 1.1, 1, 1),
means2 = c(1.4, 1.5, 3, 2.5),
stds1 = c(1, 2, 2, 1.3),
stds2 = c(1, 2, 2, 1.3))
# display the stage results
getStageResults(design = design, dataInput = data, stage = 3)
# display the analysis results
getAnalysisResults(design = design, dataInput = data, equalVariances = TRUE,
stage = stage, nPlanned = rep(10, kMax - stage),
thetaH0 = 0, thetaH1 = 1.3, allocationRatioPlanned = 2)design <- getDesignGroupSequential()rpact comparison tools: getDesignSetgetSampleSizeMeans(), getPowerMeans()getSimulationMeans()data <- getDataset()getAnalysisResults(design, data)The most important rpact functions have intuitive names:
getDesign[GroupSequential/InverseNormal/Fisher]()getDesignCharacteristics()getSampleSize[Means/Rates/Survival]()getPower[Means/Rates/Survival]()getSimulation[MultiArm/Enrichment]`[Means/Rates/Survival]()`getDataSet()getAnalysisResults()getStageResults()RStudio / Eclipse: auto code completion makes it easy to use these functions.
In general, everything runs with the R standard functions which are always present in R: so-called R generics, e.g., print, summary, plot, as.data.frame, names, length
Several utility functions are available, e.g.
getAccrualTime()getPiecewiseSurvivalTime()getNumberOfSubjects()getEventProbabilities()getPiecewiseExponentialDistribution()pi, lambda and median, e.g., getLambdaByMedian()testPackage(): installation qualification on a client computer or company server (via unit tests)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.
For more information please visit www.rpact.com/products
rpact packageFor more information please visit www.rpact.com/services
Please use our bug report form to submit bug descriptions and issues in a systematic way: bugreport.rpact.org
The rpact validation documentation is available exclusively for our customers and supporting companies. For more information visit www.rpact.com/services/sla↩︎
Copyright © 2022 RPACT GbR. All rights reserved.
RPACT ® is a registered trademark.