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)
d
: structured data from dat4jags
to be passed to JAGSmodel
: the state-space model to be fit: hDCRW or hDCRWSadapt
: number of samples in adaptation/burnin phasesamples
: number of posterior samplesthin
: thinning factor to reduce posterior sample autocorrelationchains
: number of parallel McMC chains to runspan
: spanReturns a list of McMC samples from marginal posteriors and a summary data.frame
of mean and median position estimates.
Function to be called by fit_ssm
.