Learn R Programming

amt (version 0.2.2.0)

site_fidelity: 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 steps_xy site_fidelity(x, n = 100, alpha = 0.05, ...)

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.

Arguments

x

A track

...

None implemented

n

Numeric scalar. The number of simulated trajectories.

alpha

Numeric scalar. The alpha value used for the bootstrapping.

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

Run this code
# real data
# \donttest{
data(deer)
ds <- deer |> steps_by_burst()
site_fidelity(ds)
# }

Run the code above in your browser using DataLab