Learn R Programming

HMMextra0s (version 1.1.0)

Hidden Markov Models with Extra Zeros

Description

Contains functions for hidden Markov models with observations having extra zeros as defined in the following two publications, Wang, T., Zhuang, J., Obara, K. and Tsuruoka, H. (2016) ; Wang, T., Zhuang, J., Buckby, J., Obara, K. and Tsuruoka, H. (2018) . The observed response variable is either univariate or bivariate Gaussian conditioning on presence of events, and extra zeros mean that the response variable takes on the value zero if nothing is happening. Hence the response is modelled as a mixture distribution of a Bernoulli variable and a continuous variable. That is, if the Bernoulli variable takes on the value 1, then the response variable is Gaussian, and if the Bernoulli variable takes on the value 0, then the response is zero too. This package includes functions for simulation, parameter estimation, goodness-of-fit, the Viterbi algorithm, and plotting the classified 2-D data. Some of the functions in the package are based on those of the R package 'HiddenMarkov' by David Harte. This updated version has included an example dataset and R code examples to show how to transform the data into the objects needed in the main functions. We have also made changes to increase the speed of some of the functions.

Copy Link

Version

Install

install.packages('HMMextra0s')

Monthly Downloads

146

Version

1.1.0

License

GPL (>= 2)

Maintainer

Ting Wang

Last Published

August 3rd, 2021

Functions in HMMextra0s (1.1.0)

plotVitloc2d

Plot the Classified 2-D Data of a Bivariate HMM With Extra Zeros
sim.hmm0norm

Simulation of a 1-D HMM with Extra Zeros
cumdist.hmm0norm

Cumulative distribution of an HMM with Extra Zeros
Viterbi.hmm0norm

Viterbi Path of a 1-D HMM with Extra Zeros
Viterbi.hmm0norm2d

Viterbi Path of a Bivariate HMM with Extra Zeros
hmm0norm

Parameter Estimation of an HMM with Extra Zeros
hmm0norm2d

Parameter Estimation of a bivariate HMM with Extra Zeros
HMMextra0s-package

HMMextra0s Hidden Markov Models (HMMs) with Extra Zeros
plotVitpath2d

Plot the Viterbi Path of a Bivariate HMM With Extra Zeros
sim.hmm0norm2d

Simulation of a Bivariate HMM with Extra Zeros
Kii

Tremor data in the Kii region in 2002 and 2003 for use in function hmm0norm2d