Update movement distributions
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_", ...)
object |
|
beta_sl |
|
beta_log_sl |
|
... |
Further arguments, none implemented. |
beta_cos_ta |
|
An amt_distr
object, which consists of a list with the name
of
the distribution and its parameters (saved in params
).
Brian J. Smith
Fieberg et al. in prep.
Wrapper to fit a distribution to data fit_distr()
# 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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.