hmmTMB: Hidden Markov models with flexible covariate effects in R

11/25/2022
by   Theo Michelot, et al.
0

Hidden Markov models (HMMs) are widely applied in studies where a discrete-valued process of interest is observed indirectly. They have for example been used to model behaviour from human and animal tracking data, disease status from medical data, and financial market volatility from stock prices. The model has two main sets of parameters: transition probabilities, which drive the latent state process, and observation parameters, which characterise the state-dependent distributions of observed variables. One particularly useful extension of HMMs is the inclusion of covariates on those parameters, to investigate the drivers of state transitions or to implement Markov-switching regression models. We present the new R package hmmTMB for HMM analyses, with flexible covariate models in both the hidden state and observation parameters. In particular, non-linear effects are implemented using penalised splines, including multiple univariate and multivariate splines, with automatic smoothness selection. The package allows for various random effect formulations (including random intercepts and slopes), to capture between-group heterogeneity. hmmTMB can be applied to multivariate observations, and it accommodates various types of response data, including continuous (bounded or not), discrete, and binary variables. Parameter constraints can be used to implement non-standard dependence structures, such as semi-Markov, higher-order Markov, and autoregressive models. Here, we summarise the relevant statistical methodology, we describe the structure of the package, and we present an example analysis of animal tracking data to showcase the workflow of the package.

READ FULL TEXT
research
09/06/2021

Ignorable and non-ignorable missing data in hidden Markov models

We consider missing data in the context of hidden Markov models with a f...
research
07/12/2023

Quantile and expectile copula-based hidden Markov regression models for the analysis of the cryptocurrency market

The role of cryptocurrencies within the financial systems has been expan...
research
10/10/2017

momentuHMM: R package for generalized hidden Markov models of animal movement

Discrete-time hidden Markov models (HMMs) have become an immensely popul...
research
06/06/2021

Seemingly Unrelated Multi-State processes: a Bayesian semiparametric approach

Many applications in medical statistics as well as in other fields can b...
research
05/27/2022

Probabilistic Systems with Hidden State and Unobservable Transitions

We consider probabilistic systems with hidden state and unobservable tra...

Please sign up or login with your details

Forgot password? Click here to reset