Learn R Programming

overlap (version 0.3.9)

overlap-package: Functions to estimate overlap of temporal activity patterns of animals

Description

The times recorded on camera trap photos provide information on the period during the day that a species is most active. Species active at the same periods may interact as predator and prey, or as competitors. The functions in this package allow the overlap to be quantified, and provide means of estimating confidence intervals with bootstraps.

Arguments

Author

Mike Meredith, based on work by Martin Ridout.

Details

The functions in this package were originally optimised for a simulation study. Hence, speed is important and checking of input is minimal. It is the user's responsibility to make sure that input is valid.

In particular, note that all times are measured in radians. If your original data use 0-24 hours or 0-1 days, convert to radians: see the example in kerinci. If you need fitted densities in other units, use the output from densityPlot or overlapPlot.

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

See overlapTrue for the definition of the coefficient of overlapping, and overlapEst for equations for the estimators. See kerinci for an example of calculation of overlap and confidence interval from real data.

The R package activity has more functions for analysis of animal activity patterns.

Examples

Run this code
# Get example data:
data(simulatedData)

# Use defaults:
overlapEst(tigerObs, pigObs)
#     Dhat1     Dhat4     Dhat5
# 0.2908618 0.2692011 0.2275000

overlapEst(tigerObs, pigObs, type="Dhat4")
# Dhat4
# 0.2692011

Run the code above in your browser using DataLab