Package: optconerrf 1.0.3

optconerrf: Optimal Monotone Conditional Error Functions

Design and analysis of confirmatory adaptive clinical trials using the optimal conditional error framework according to Brannath and Bauer (2004) <doi:10.1111/j.0006-341X.2004.00221.x>. An extension to the optimal conditional error function using interim estimates as described in Brannath and Dreher (2024) <doi:10.48550/arXiv.2402.00814> and functions to ensure that the resulting conditional error function is non-increasing are also available.

Authors:Morten Dreher [aut, cre], Werner Brannath [aut, cph], Cornelia Ursula Kunz [ctb], Johanna zur Verth [aut]

optconerrf_1.0.3.tar.gz
optconerrf_1.0.3.zip(r-4.7-any)optconerrf_1.0.3.zip(r-4.6-any)optconerrf_1.0.3.zip(r-4.5-any)
optconerrf_1.0.3.tgz(r-4.6-any)optconerrf_1.0.3.tgz(r-4.5-any)
optconerrf_1.0.3.tar.gz(r-4.7-any)optconerrf_1.0.3.tar.gz(r-4.6-any)
optconerrf_1.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
optconerrf/json (API)

# Install 'optconerrf' in R:
install.packages('optconerrf', repos = c('https://morten-dreher.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/morten-dreher/optconerrf/issues

On CRAN:

Conda:

4.60 score 1 stars 5 scripts 261 downloads 11 exports 17 dependencies

Last updated from:4052f060a2. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK219
source / vignettesOK217
linux-releaseOK209
macos-releaseOK266
macos-oldrelOK245
windows-develOK271
windows-releaseOK291
windows-oldrelOK257
wasm-releaseOK105

Exports:getDesignOptimalConditionalErrorFunctiongetExpectedSecondStageInformationgetLikelihoodRatiogetNugetNuPrimegetOptimalConditionalErrorgetOverallPowergetPsigetQgetSecondStageInformationgetSimulationResults

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

Constraints, Interim Estimates and Conditional Power Functions for the Optimal Conditional Error Function
Summary | Constraints | Interim Estimate for Treatment Effect | Using a Conditional Power Function | Limitations

Last update: 2026-09-03
Started: 2025-03-03

Introduction to the 'optconerrf' package
Purpose of the package | Prerequisites to computing the optimal conditional error function | Creating the design object | Overall type I error rate and early stopping boundaries | Effect for likelihood ratio | Conditional power | Effect for conditional power | First-stage information | Optional: Minimum and maximum conditional error | Calculating the level constant | Calculating monotonisation constants | Using the design object | Computing the optimal conditional error function and second-stage information | Calculation of expected second-stage information | Complementary functions | References

Last update: 2025-08-29
Started: 2024-11-08

Readme and manuals

Help Manual

Help pageTopics
Simple range check for numeric variables.rangeCheck
Calculates the upper constraint.getConstraintC_max
Calculates the lower constraint.getConstraintC_min
Create a design object for the optimal conditional error function.getDesignOptimalConditionalErrorFunction
Calculate Expected Second-stage InformationgetExpectedSecondStageInformation
Get Level Constant for Optimal Conditional Error FunctiongetLevelConstant
Calculate Likelihood RatiogetLikelihoodRatio
Return Monotone Function ValuesgetMonotoneFunction
Calculate the Constants for MonotonisationgetMonotonisationConstants
Calculate NugetNu
Calculate the Derivate of NugetNuPrime
Calculate the Optimal Conditional ErrorgetOptimalConditionalError
Calculate the overall powergetOverallPower
Calculate Psi, the Inverse of Nu PrimegetPsi
Calculate QgetQ
Calculate the Second-stage InformationgetSecondStageInformation
Simulate trialsgetSimulationResults
Plot the optimal conditional error functionplot.TrialDesignOptimalConditionalError
Power results for optimal conditional error designPowerResultsOptimalConditionalError
Print power resultsprint.PowerResultsOptimalConditionalError
Print simulation resultsprint.SimulationResultsOptimalConditionalError
Print optimal conditional error trial designprint.TrialDesignOptimalConditionalError
Simulation results for optimal conditional error designSimulationResultsOptimalConditionalError
Summary of the optimal conditional error trial designsummary.TrialDesignOptimalConditionalError
Optimal Conditional Error DesignTrialDesignOptimalConditionalError