CalcOverlap: Calculate the overlap of kernel densities

Description Usage Arguments Details Value

Description

Calculate the overlap of kernel densities. Either densities of flock sizes calculated from field observations and from the simulated flock sizes, of hunter densities on farms or kernel densities of number of hunters per farm

Usage

1
CalcOverlap(data = NULL, species = NULL, metric = NULL)

Arguments

data

data.table An object containing both the simulated and observed flock sizes and the three columns 'Species', 'Numbers' and 'Type'

species

character The species for which the calculated for. Either 'Barnacle', 'Pinkfoot','Greylag' or 'Hunter'

metric

character The name of the column with the metric on which to calculate the kernel density overlap

Details

This function is based on the answer to this CV question: http://stats.stackexchange.com/questions/97596/how-to-calculate-overlap -between-empirical-probability-densities

Value

numeric The overlap


LDalby/ralmass documentation built on May 8, 2019, 5:48 p.m.