Learn R Programming

hhsmm (version 0.4.2)

Hidden Hybrid Markov/Semi-Markov Model Fitting

Description

Develops algorithms for fitting, prediction, simulation and initialization of the following models (1)- hidden hybrid Markov/semi-Markov model, introduced by Guedon (2005) , (2)- nonparametric mixture of B-splines emissions (Langrock et al., 2015 ), (3)- regime switching regression model (Kim et al., 2008 ) and auto-regressive hidden hybrid Markov/semi-Markov model, (4)- spline-based nonparametric estimation of additive state-switching models (Langrock et al., 2018 ) (5)- robust emission model proposed by Qin et al, 2024 (6)- several emission distributions, including mixture of multivariate normal (which can also handle missing data using EM algorithm) and multi-nomial emission (for modeling polymer or DNA sequences) (7)- tools for prediction of future state sequence, computing the score of a new sequence, splitting the samples and sequences to train and test sets, computing the information measures of the models, computing the residual useful lifetime (reliability) and many other useful tools ... (read for more description: Amini et al., 2022 and its arxiv version: ).

Copy Link

Version

Install

install.packages('hhsmm')

Monthly Downloads

212

Version

0.4.2

License

GPL-3

Maintainer

Morteza Amini

Last Published

September 4th, 2024

Functions in hhsmm (0.4.2)

lagdata

Create hhsmm data of lagged time series
additive_reg_mstep

the M step function of the EM algorithm
ltr_reg_clus

left to right linear regression clustering
hhsmmdata

convert to hhsmm data
ltr_clus

left to right clustering
addreg_hhsmm_predict

predicting the response values for the regime switching model
hhsmmfit

hhsmm model fit
make_model

make a hhsmmspec model for a specified emission distribution
miss_mixmvnorm_mstep

the M step function of the EM algorithm
mixdiagmvnorm_mstep

the M step function of the EM algorithm
mixlm_mstep

the M step function of the EM algorithm
dmixlm

pdf of the mixture of Gaussian linear (Markov-switching) models for hhsmm
rmixmvnorm

Random data generation from the mixture of multivariate normals for hhsmm model
rmultinomial.hhsmm

Random data generation from the multinomial emission distribution for hhsmm model
initial_cluster

initial clustering of the data set
initial_estimate

initial estimation of the model parameters for a specified emission distribution
dmixmvnorm

pdf of the mixture of multivariate normals for hhsmm
simulate.hhsmmspec

Simulation of data from hhsmm model
nonpar_mstep

the M step function of the EM algorithm
score

the score of new observations
robust_mstep

the M step function of the EM algorithm
predict.hhsmm

prediction of state sequence for hhsmm
train_test_split

Splitting the data sets to train and test
raddreg

Random data generation from the Gaussian additive (Markov-switching) model for hhsmm model
predict.hhsmmspec

prediction of state sequence for hhsmm
homogeneity

Computing maximum homogeneity of two state sequences
hhsmmspec

hhsmm specification
mstep.multinomial

the M step function of the EM algorithm
rmixlm

Random data generation from the mixture of Gaussian linear (Markov-switching) models for hhsmm model
mixmvnorm_mstep

the M step function of the EM algorithm
rmixar

Random data generation from the mixture of Gaussian linear (Markov-switching) autoregressive models for hhsmm model
dnorm_additive_reg

pdf of the Gaussian additive (Markov-switching) model for hhsmm
dmultinomial.hhsmm

pdf of the multinomial emission distribution for hhsmm
cov.mix.wt

weighted covariance
cov.miss.mix.wt

weighted covariance for data with missing values
drobust

pdf of the mixture of the robust emission proposed by Qin et al. (2024)
initialize_model

initialize the hhsmmspec model for a specified emission distribution
dnonpar

pdf of the mixture of B-splines for hhsmm