Learn R Programming

optconerrf (version 1.0.1)

getIntegral: 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)

Value

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

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).