hdrs: Calculate the HDR-based synchrony metric

Description Usage Arguments Value Note Examples

View source: R/hdrs.R

Description

Calculate the HDR-based synchrony metric

Usage

1
hdrs(x, p = 80, nsim = 5000)

Arguments

p

A number indicating the percentage of individuals that have completed the focal activity. The default is 80.

nsim

The number of simulations used to esimtate the HDR. The default is 5000.

Value

A number representing the length of time it takes p percent of indivdiuals to complete the focal activity.

Note

The hdrs metric quantifies the amount of time it took for p percent of the sampled individuals to complete the specified activity (e.g., mating, calving, etc...). Therefore, a smaller hdrs value indicates a more synchronous population, while a larger hdrs value indicates less synchrony.

Examples

1
2
x <- rexp(25)
hdrs(x)

jmcalabrese/hdrs documentation built on May 22, 2019, 5:34 p.m.