# Get a design
design <- getDesignOptimalConditionalErrorFunction(
alpha = 0.025, alpha1 = 0.001, alpha0 = 0.5, conditionalPower = 0.9,
delta1 = 0.25, likelihoodRatioDistribution = "fixed", deltaLR = 0.25,
firstStageInformation = 80, useInterimEstimate = FALSE,
)
# Calculate expected information under correct specification
getExpectedSecondStageInformation(design)
# Calculate expected information under the null hypothesis
getExpectedSecondStageInformation(
design = design, likelihoodRatioDistribution = "fixed", deltaLR = 0
)
Run the code above in your browser using DataLab