Learn R Programming

optconerrf (version 1.0.1)

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

Value

Integral over the partially constant function.

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.