getInnerPsi: Internal variation of 'getPsi()' used by...

View source: R/getInnerPsi.R

getInnerPsiR Documentation

Internal variation of getPsi() used by findLevelConstant()

Description

Calculate psi for the given scenario, incl. constant

Usage

getInnerPsi(firstStagePValue, constant, design)

Arguments

firstStagePValue

First-stage p-value, internally used as integral argument.

constant

Current value of the level constant for the optimal conditional error function, internally used as integral argument.

design

An object of class TrialDesignOptimalConditionalError created by getDesignOptimalConditionalErrorFunction(). Contains all necessary arguments to calculate the optimal conditional error function for the specified case.

Details

Internal function called by getIntegral() that calculates a point value of getPsi().

Value

Point value of getPsi().


optconerrf documentation built on Sept. 9, 2025, 5:29 p.m.