View source: R/site_fidelity.R
site_fidelity | R Documentation |
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.
site_fidelity(x, ...)
## S3 method for class 'steps_xy'
site_fidelity(x, n = 100, alpha = 0.05, ...)
x |
A track |
... |
None implemented |
n |
Numeric scalar. The number of simulated trajectories. |
alpha |
Numeric scalar. The alpha value used for the bootstrapping. |
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.
Spencer, S. R., Cameron, G. N., & Swihart, R. K. (1990). Operationally defining home range: temporal dependence exhibited by hispid cotton rats. Ecology, 1817-1822.
# real data
data(deer)
ds <- deer |> steps_by_burst()
site_fidelity(ds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.