Title: | Hidden Markov Models for Multivariate Panel Data |
---|---|
Description: | Estimates hidden Markov models from the family of Cholesky-decomposed Gaussian hidden Markov models (CDGHMM) under various missingness schemes. This family improves upon estimation of traditional Gaussian HMMs by introducing parsimony, as well as, controlling for dropped out observations and non-random missingness. See Neal, Sochaniwsky and McNicholas (2024) <DOI:10.1007/s11222-024-10462-0>. |
Authors: | Mackenzie R. Neal [aut, cre]
|
Maintainer: | Mackenzie R. Neal <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.1.1 |
Built: | 2025-01-31 03:38:07 UTC |
Source: | https://github.com/cran/CDGHMM |
Estimates hidden Markov models from the CDGHMM family under various missingness schemes.
cdghmm(x,m,id,mu=NULL,sigma=NULL,gamma=NULL,delta=NULL,alpha=NULL,beta=NULL, maxiter=10000,tol=1e-6,type="s",covtype="VVA")
cdghmm(x,m,id,mu=NULL,sigma=NULL,gamma=NULL,delta=NULL,alpha=NULL,beta=NULL, maxiter=10000,tol=1e-6,type="s",covtype="VVA")
x |
Data frame or matrix to perform variable selection on |
m |
Number to indicate the number of states to fit. |
id |
A vector of indicators to indicate observational unit. |
mu |
An |
sigma |
An |
gamma |
A |
delta |
A vector to be used as an initial estimate for |
alpha |
A |
beta |
A |
maxiter |
A number to indicate the maximum number of iterations allowed, default is |
tol |
A number to indicate the tolerance value, default is |
type |
A character to indicate which type of missingness mechanism to use. The allowed values are:
|
covtype |
A string to indicate which covariance estimate to use. The allowed values are:
|
mu |
Estimated mean matrices. |
sigma |
Estimated covariance matrices. |
gamma |
Estimated gamma matrix. |
delta |
Estimated delta vector. |
alpha |
Estimated alpha missingness parameters. |
beta |
Estimated beta missingness parameters. |
llk |
Estimated log-likelihood. |
AIC |
The value of the Akaike information criterion. |
BIC |
The value of the Bayes information criterion. |
ICL |
The value of the integrated completed likelihood. |
Avg_Silouette |
The value of the average silhouette score. |
probs |
A matrix whose entries correspond to the probability of belonging to a state. |
states |
Estimated states via map(probs). |
mod |
The CDGHMM family member fit. |
Mackenzie R. Neal, Alexa A. Sochaniwsky, Paul D. McNicholas
See citation("CDGHMM")
.
data("simulated_data") id=simulated_data$V5 x <- simulated_data[,1:4] EEI_mod=cdghmm(x,2,id=id,covtype="EEI",tol=1e-4) table(simulated_data$V7,EEI_mod$states)
data("simulated_data") id=simulated_data$V5 x <- simulated_data[,1:4] EEI_mod=cdghmm(x,2,id=id,covtype="EEI",tol=1e-4) table(simulated_data$V7,EEI_mod$states)
Simulated data with two groups, used to illustrate cdghmm
data(simulated_data)
data(simulated_data)
These data were simulated using R
.