optconerrf1.0.1 package

Optimal Monotone Conditional Error Functions

dot-rangeCheck

Simple range check for numeric variables

getDesignOptimalConditionalErrorFunction

Create a design object for the optimal conditional error function.

getExpectedSecondStageInformation

Calculate Expected Second-stage Information

getInnerPsi

Internal variation of getPsi() used by findLevelConstant()

getIntegral

Internal calculation of the integral over psi

getIntegralWithConstants

Calculate the integral over a partially constant function

getLevelConstant

Get Level Constant for Optimal Conditional Error Function

getLikelihoodRatio

Calculate Likelihood Ratio

getMonotoneFunction

Return Monotone Function Values

getMonotonisationConstants

Calculate the Constants for Monotonisation

getNu

Calculate Nu

getNuPrime

Calculate the Derivate of Nu

getOptimalConditionalError

Calculate the Optimal Conditional Error

getOverallPower

Calculate the overall power

getPsi

Calculate Psi, the Inverse of Nu Prime

getQ

Calculate Q

getSecondStageInformation

Calculate the Second-stage Information

getSimulationResults

Simulate trials

integrateExpectedInformation

Integrate over information

plot.TrialDesignOptimalConditionalError

Plot the optimal conditional error function

PowerResultsOptimalConditionalError

Power results for optimal conditional error design

print.PowerResultsOptimalConditionalError

Print power results

print.SimulationResultsOptimalConditionalError

Print simulation results

print.TrialDesignOptimalConditionalError

Print optimal conditional error trial design

SimulationResultsOptimalConditionalError

Simulation results for optimal conditional error design

summary.TrialDesignOptimalConditionalError

Summary of the optimal conditional error trial design

TrialDesignOptimalConditionalError

Optimal Conditional Error Design

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.

  • Maintainer: Morten Dreher
  • License: GPL (>= 3)
  • Last published: 2025-09-29