area.between: Area between a Density Function and a Kernel Estimate
Description
The function area.between is an (internal) function of the GoFKernel package that calculates the area,
in a given interval, between a theoretical density function and an empirical
kernel estimate. area.between is called by dgeometric.test of the GoFKernel package.
A number corresponding to the numerical value of the area between a density function and
a kernel estimate.
Arguments
f
a density function.
kernel.density
an empirical kernel estimate, an object of the class density.
lower
lower limit of the support of f, default -Inf.
upper
upper limit of the support of f, default Inf.
Author
Jose M. Pavia
Details
area.between is called by dgeometric.test and numerically calculates
the area between the density function of the null hypothesis and the kernel density estimate
of either the observed sample or a simulated sample from f.
See Also
density.reflected, dgeometric.test, inverserandom.function, support.facto and
density