simfit: simulate animal tracks from a 'fG_ssm' fit

Description Usage Arguments Examples

View source: R/simfit.R

Description

simulate from the rw or crw process models to generate either a set of x,y (or lon,lat) coordinates from a fG_ssm fit with length equal to the number of observations used in the SSM fit.

Usage

1
2
3
4
5
6
7
simfit(
  x,
  what = c("fitted", "predicted"),
  reps = 1,
  cpf = FALSE,
  sim_only = FALSE
)

Arguments

x

a compound fG_ssm model fit object (ignored if NULL)

what

simulate fitted (typically irregular in time) or predicted (typically regular in time) locations

reps

number of replicate tracks to simulate from an fG_ssm model fit object (ignored if x is NULL)

cpf

logical; should simulated tracks return to their start point (ie. a central-place forager)

sim_only

logical, do not include fG_ssm estimated location in output (default is FALSE)

Examples

1
2
3
fit <- fit_ssm(ellie, vmax = 4, model = "crw", time.step = 48, control = ssm_control(se = FALSE))
trs <- simfit(fit, reps = 2, what = "predicted")
plot(trs)

foieGras documentation built on April 27, 2021, 1:05 a.m.