bsam

Project Status: Inactive – The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows. CRAN_Status_Badge CRAN_Downloads CRAN_Downloads

bsam - Bayesian State-space models for Animal Movement.

bsam is an R package that fits Bayesian state-space models via JAGS to Argos satellite tracking data. The models filter error-prone Argos locations and estimate behavioural states associated with two fundamentally different movement patterns (directed, fast movements and relatively undirected, slow movements). The models can be fit to individual animal tracks or simultaneously to a group of individuals. Plotting functions are provided to help assess lack of MCMC convergence, map estimated tracks and visualise fit to the observations.

Read ?bsam for more details on functionality and ?fit_ssm for details and examples of how to use the package.

Installation

First ensure that you have a working copy of JAGS (>= 4.2.0) for the rjags package, see instructions below.

library(rjags)

Get the released version of bsam from CRAN:

install.packages("bsam")

Or download the current development version from GitHub:

# install.packages("devtools")  
devtools::install_github("ianjonsen/bsam")

JAGS installation

Install JAGS