
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_fidelty(x, ...)# S3 method for steps_xy
site_fidelty(x, n = 100, alpha = 0.05, ...)
A track
None implemented
Numeric scalar. The number of simulated trajectories.
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.
# NOT RUN {
# real data
# }
# NOT RUN {
data(deer)
ds <- deer %>% steps_by_burst()
site_fidelity(ds)
# }
Run the code above in your browser using DataLab