getIntegralWithConstants: Calculate the integral over a partially constant function

View source: R/getIntegralWithConstants.R

getIntegralWithConstantsR Documentation

Calculate the integral over a partially constant function

Description

This function aims to provide a more accurate integration routine than the integrate() function for a partially constant function.

Usage

getIntegralWithConstants(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.

Value

Integral over the partially constant function.


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