site_fidelity: Test for site fidelity of animal movement.

View source: R/site_fidelity.R

site_fidelityR Documentation

Test for site fidelity of animal movement.

Description

Calculates two indices (mean squared displacement and linearity) to test for site fidelity. Significance testing is done by permuting step lengths and drawing turning angles from a uniform distribution.

Usage

site_fidelity(x, ...)

## S3 method for class 'steps_xy'
site_fidelity(x, n = 100, alpha = 0.05, ...)

Arguments

x

A track

...

None implemented

n

Numeric scalar. The number of simulated trajectories.

alpha

Numeric scalar. The alpha value used for the bootstrapping.

Value

A list of length 4. msd_dat and li_dat is the mean square distance and linearity for the real date. msd_sim and 'li_sim“ are the mean square distances and linearities for the simulated trajectories.

References

Spencer, S. R., Cameron, G. N., & Swihart, R. K. (1990). Operationally defining home range: temporal dependence exhibited by hispid cotton rats. Ecology, 1817-1822.

Examples

# real data

data(deer)
ds <- deer |> steps_by_burst()
site_fidelity(ds)


amt documentation built on June 25, 2024, 1:14 a.m.