Learn R Programming

rpact (version 2.0.6)

getConditionalRejectionProbabilities: Get Conditional Rejection Probabilities

Description

Calculates the conditional rejection probabilities (CRP) for given test results.

Usage

getConditionalRejectionProbabilities(design, stageResults, ...)

Arguments

design

The trial design.

stageResults

The results at given stage, obtained from getStageResults.

stage

The stage number (optional). Default: total number of existing stages in the data input.

Details

The conditional rejection probability is the probability, under H0, to reject H0 in one of the subsequent (remaining) stages. The probability is calculated using the specified design. For testing rates and the survival design, the normal approximation is used, i.e., it is calculated with the use of the prototype case testing a mean for normally distributed data with known variance.

The conditional rejection probabilities are provided up to the specified stage.

For Fisher's combination test, you can check the validity of the CRP calculation via simulation.

Examples

Run this code
# NOT RUN {
x <- getDesignFisher(kMax = 3, informationRates = c(0.1,0.8,1))
y <- getDataset(n = c(40,40), events = c(20,22))
getConditionalRejectionProbabilities(x, getStageResults(x, y, thetaH0 = 0.4))
# provides 
# [1] 0.0216417 0.1068607        NA

# }

Run the code above in your browser using DataLab