Last chance! 50% off unlimited learning
Sale ends in
Update tentative step length or turning angle distribution from a fitted iSSF.
update_sl_distr(object, beta_sl = "sl_", beta_log_sl = "log_sl_", ...)update_ta_distr(object, beta_cos_ta = "cos_ta_", ...)
[fit_clogit]
A fitted iSSF model.
[character]
The name of the coefficient of the step length.
[character]
The name of the coefficient of the log of the step length.
Further arguments, none implemented.
[character]
The name of the coefficient of cosine of the turning angle.
An amt_distr
object, which consists of a list with the name
of
the distribution and its parameters (saved in params
).
Fieberg et al. in prep.
Wrapper to fit a distribution to data fit_distr()
# NOT RUN {
# Fit an SSF, then update movement parameters.
#Prepare data for SSF
ssf_data <- deer %>%
steps_by_burst() %>%
random_steps(n = 15) %>%
extract_covariates(sh_forest) %>%
mutate(forest = factor(sh.forest, levels = 1:2,
labels = c("forest", "non-forest")),
cos_ta_ = cos(ta_),
log_sl_ = log(sl_))
# Check tentative distributions
# Step length
attr(ssf_data, "sl_")
# Turning angle
attr(ssf_data, "ta_")
# Fit an iSSF
m1 <- ssf_data %>%
fit_issf(case_ ~ forest +
sl_ + log_sl_ + cos_ta_ +
strata(step_id_))
# Update step length distribution
new_gamma <- update_sl_distr(m1)
#Update turning angle distribution
new_vm <- update_ta_distr(m1)
# }
Run the code above in your browser using DataLab