Learn R Programming

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

momentuHMM

An R package for Maximum likelihood analysis Of animal MovemENT behavior Using multivariate Hidden Markov Models

Get started with the vignette: Guide to using momentuHMM

Installation instructions

CRAN release

The package is available on CRAN. To install it:

install.packages("momentuHMM")

Install from Github

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

library(devtools)
install_github("bmcclintock/momentuHMM")

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

library(devtools)
install_github("bmcclintock/momentuHMM", ref="develop")

References

McClintock, B.T., Michelot, T. (2017) momentuHMM: R package for generalized hidden Markov models of animal movement. arXiv:1710.03786.

McClintock, B.T., King R., Thomas L., Matthiopoulos J., McConnell B.J., Morales J.M. (2012) A general discrete-time modeling framework for animal movement using multistate random walks. Ecological Monographs, 82(3), 335-349.

McClintock, B.T. (2017) Incorporating telemetry error into hidden Markov models of animal movement using multiple imputation. Journal of Agricultural, Biological, and Environmental Statistics, 22(3), 249-269.

Copy Link

Version

Install

install.packages('momentuHMM')

Monthly Downloads

625

Version

1.2.0

License

GPL-3

Maintainer

Brett T McClintock

Last Published

October 20th, 2017

Functions in momentuHMM (1.2.0)

crawlMerge

Merge crwData object with additional data streams and/or covariates
crawlWrap

Fit and predict tracks for using crawl
MIpool

Calculate pooled parameter estimates and states across multiple imputations
XBloop_rcpp

Get XB
CIreal

Confidence intervals for the natural (i.e., real) parameters
MIfitHMM

Fit HMMs to multiple imputation data
AIC.momentuHMM

AIC
CIbeta

Confidence intervals for working (i.e., beta) parameters
allProbs

Matrix of all probabilities
circAngles

Convert standard direction angles (in radians relative to the x-axis) to turning angle covariates suitable for circular-circular regression on the angle mean
crwData

Constructor of crwData objects
crwSim

Constructor of crwSim objects
distAngle

Calculate distance between points y and z and turning angle between points x, y, and z
dlnorm_rcpp

Log-normal density function
example

Example dataset
fitHMM

Fit a multivariate HMM to the data
dwrpcauchy_rcpp

Wrapped Cauchy density function
exGen

Example data simulation
logBeta

Backward log-probabilities
miHMM

Constructor of miHMM objects
dnorm_rcpp

Normal density function
dpois_rcpp

Poisson density function
dvm_rcpp

Von Mises density function
dexp_rcpp

Exponential density function
dgamma_rcpp

Gamma density function
getCovNames

Get names of any covariates used in probability distribution parameters
getDM_rcpp

Get design matrix
is.momentuHMMData

Is momentuHMMData
dbern_rcpp

Bernoulli density function
dbeta_rcpp

Probability density function of the beta distribution (written in C++)
getPar

Get starting values from momentuHMM, miHMM, or miSum object returned by fitHMM, MIfitHMM, or MIpool
getPar0

Get starting values for new model from existing momentuHMM model fit
getParDM

Get starting values on working scale based on design matrix and other parameter constraints
is.miSum

Is miSum
is.momentuHMM

Is momentuHMM
parDef

Parameters definition
is.crwData

Is crwData
momentuHMMData

Constructor of momentuHMMData objects
n2w

Scaling function: natural to working parameters.
prepData

Preprocessing of the data streams and covariates
print.miHMM

Print miHMM
logAlpha

Forward log-probabilities
miSum

Constructor of miSum objects
momentuHMM

Constructor of momentuHMM objects
plotPR

Plot pseudo-residuals
plotSat

Plot observations on satellite image
trMatrix_rcpp

Transition probability matrix
turnAngle

Turning angle
dweibull_rcpp

Weibull density function
is.crwSim

Is crwSim
is.miHMM

Is miHMM
plot.miHMM

Plot miHMM
nLogLike

Negative log-likelihood function
nLogLike_rcpp

Negative log-likelihood
plotSpatialCov

Plot observations on raster image
plot.crwData

Plot crwData
plot.momentuHMM

Plot momentuHMM
plot.momentuHMMData

Plot momentuHMMData
simObsData

Observation error simulation tool
stateProbs

State probabilities
plotStates

Plot states
viterbi

Viterbi algorithm
w2n

Scaling function: working to natural parameters
pseudoRes

Pseudo-residuals
simData

Simulation tool
plot.miSum

Plot miSum
print.miSum

Print miSum
print.momentuHMM

Print momentuHMM