getIntegral: Internal calculation of the integral over psi

View source: R/getIntegral.R

getIntegralR Documentation

Internal calculation of the integral over psi

Description

Helper function that integrates over the optimal conditional error function. Used to find appropriate level constant.

Usage

getIntegral(constant, design)

Arguments

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 findLevelConstant() that should be solved (i.e., root should be found).

Value

Distance of integral over psi to (alpha-alpha1).


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