Learn R Programming

hmi (version 0.9.16)

doubleintegral: Function to calculate double integrals

Description

This function is primarily build to make the function components neater.

Usage

doubleintegral(lower_inner, upper_inner, lower_outer, upper_outer, cdf,
  ...)

Arguments

lower_inner

The vector for the lower bound for the inner integral

upper_inner

The vector for the upper bound for the inner integral

lower_outer

The vector for the lower bound for the outer integral

upper_outer

The vector for the upper bound for the outer integral

cdf

the cumulative density function (from the class "function")

...

Further arguments passed to the cdf.

Value

a vector with the value of the double integral for each observation (with an observed target variable)