overlapTrue: Calculates the true coefficient of overlapping between two...

View source: R/overlapTrue.R

overlapTrueR Documentation

Calculates the true coefficient of overlapping between two distributions.

Description

Calculates the true coefficient of overlapping between two distributions.

Usage

overlapTrue(d1, d2 = NULL)

Arguments

d1

either a vector or a 2-column matrix of densities for equidistant points from 0 to 2\pi; if densities for both 0 and 2\pi are included (and are equal), one will be ignored.

d2

a vector of densities as for d1; ignored if d1 is a matrix

Details

The coefficient of overlapping \Delta for two probability density functions f(x) and g(x) is given by: Formula for Delta If the two curves in the plot below represent activity patterns of two species, the coefficient of overlapping is the area under the lower of the two curves, shaded grey in the figure:

Plot of 2 curves, overlap shaded

Value

The coefficient of overlap of the two distributions. The function is intended to calculate true overlap for simulated data. If the densities provided are fitted kernel densities, an estimate of overlap results.

Author(s)

Mike Meredith, based on code by Martin Ridout.

References

Ridout & Linkie (2009) Estimating overlap of daily activity patterns from camera trap data. Journal of Agricultural, Biological, and Environmental Statistics 14:322-337

See Also

overlapEst for various estimators of overlap.

Examples

data(simulatedData)

overlapTrue(tigerTrue, pigTrue)

overlapTrue(cbind(tigerTrue, pigTrue))


overlap documentation built on May 29, 2024, 8:31 a.m.