Learn R Programming

⚠️There's a newer version (1.10) of this package.Take me there.

moveHMM

An R package for analysing animal movement with hidden Markov models.

Get started with the vignettes:

Installation instructions

Stable release

The package is available on CRAN. To install it from CRAN, you can use the following command:

install.packages("moveHMM")

Install from Github

To install the latest (unstable) version of the package from Github:

devtools::install_github("TheoMichelot/moveHMM", build_vignettes = TRUE)

References

Michelot, T., Langrock, R., Patterson, T.A. (2016). moveHMM: An R package for analysing animal movement data using hidden Markov models. Methods in Ecology and Evolution. 7(11), 1308-1315.

Langrock, R., King, R., Matthiopoulos, J., Thomas, L., Fortin, D., & Morales, J. M. (2012). Flexible and practical modeling of animal telemetry data: hidden Markov models and extensions. Ecology, 93(11), 2336-2342.

Patterson, T. A., Basson, M., Bravington, M. V., & Gunn, J. S. (2009). Classifying movement behaviour in relation to environmental conditions using hidden Markov models. Journal of Animal Ecology, 78(6), 1113-1123.

Copy Link

Version

Install

install.packages('moveHMM')

Monthly Downloads

643

Version

1.9

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Theo Michelot

Last Published

May 8th, 2023

Functions in moveHMM (1.9)

plot.moveHMM

Plot moveHMM
example

Example dataset
fitHMM

Fit an HMM to the data
nLogLike

Negative log-likelihood function
plotPR

Plot pseudo-residuals
nLogLike_rcpp

Negative log-likelihood
prepData

Preprocessing of the tracking data
predictTPM

Predict transition probabilities for new covariate values
pseudoRes

Pseudo-residuals
print.moveHMM

Print moveHMM
plotStationary

Plot stationary state probabilities
predictStationary

Predict stationary state probabilities
plotStates

Plot states
plotSat

Plot observations on satellite image
parDef

Parameters definition
plot.moveData

Plot moveData
moveData

Constructor of moveData objects
logBeta

Backward log-probabilities
stateProbs

State probabilities
simData

Simulation tool
turnAngle

Turning angle
trMatrix_rcpp

Transition probability matrix
viterbi

Viterbi algorithm
n2w

Scaling function: natural to working parameters.
is.moveHMM

Is moveHMM
logAlpha

Forward log-probabilities
moveHMM

Constructor of moveHMM objects
stationary

Stationary state probabilities
summary.moveData

Summary moveData
w2n

Scaling function: working to natural parameters
allProbs

Matrix of all probabilities
CI

Confidence intervals
dexp_rcpp

Exponential density function
dlnorm_rcpp

Log-normal density function
dweibull_rcpp

Weibull density function
angleCI

Confidence intervals for angle parameters
dvm_rcpp

Von Mises density function
AIC.moveHMM

AIC
dgamma_rcpp

Gamma density function
is.moveData

Is moveData
getPalette

Discrete colour palette for states
haggis_data

Wild haggis data set from Michelot et al. (2016, Methods Eco Evol)
getPlotData

Data to produce plots of fitted model
exGen

Example data simulation
dwrpcauchy_rcpp

Wrapped Cauchy density function
elk_data

Elk data set from Morales et al. (2004, Ecology)