Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.93 KB

README.md

File metadata and controls

36 lines (22 loc) · 1.93 KB

Full Bayesian Inference for Hidden Markov Models

We create an R Package to run full Bayesian inference on Hidden Markov Models (HMM) using the probabilistic programming language Stan. By providing an intuitive, expressive yet flexible input interface, we enable non-technical users to carry out research using the Bayesian workflow. We provide the user with an expressive interface to mix and match a wide array of options for the observation and latent models, including ample choices of densities, priors, and link functions whenever covariates are present. The software enables users to fit HMM with time-homogeneous transitions as well as time-varying transition probabilities. Priors can be set for every model parameter. Implemented inference algorithms include forward (filtering), forward-backwards (smoothing), Viterbi (most likely hidden path), prior predictive sampling, and posterior predictive sampling. Graphs, tables and other convenience methods for convergence diagnosis, goodness of fit, and data analysis are provided.

Google Summer of Code 2018

Install

devtools::install_github("luisdamiano/BayesHMM")

Prerequisites

  • R >= 3.0

Examples

See the vignette. Note that you may also find examples in inst/examples, but these may not work with the last version in the repository.

Contributing

Reach out to us at #r-finance (freenode.net).

Authors

License

GPL (>=3)

Acknowledgments

  • The Google Summer Of Code (GSOC) program for funding.
  • The members of the Stan Development Team.