hssm function

Fits hierarchical state-space models to Argos data

Fits hierarchical state-space models to Argos data

Takes output from dat4jags, sets up initial values, calls JAGS, and aggregates results. Intended for internal use, called by fit_ssm.

hssm(d, model = "hDCRWS", adapt, samples, thin, chains, span)

Arguments

  • d: structured data from dat4jags to be passed to JAGS
  • model: the state-space model to be fit: hDCRW or hDCRWS
  • adapt: number of samples in adaptation/burnin phase
  • samples: number of posterior samples
  • thin: thinning factor to reduce posterior sample autocorrelation
  • chains: number of parallel McMC chains to run
  • span: span

Returns

Returns a list of McMC samples from marginal posteriors and a summary data.frame of mean and median position estimates.

See Also

Function to be called by fit_ssm.

  • Maintainer: Ian Jonsen
  • License: GPL-2
  • Last published: 2020-09-01