Initializes the ECM algorithms used for fitting parsimonious matrix-variate Hidden Markov Models (HMMs). Parallel computing is implemented and highly recommended for faster computations.
Eigen.HMM_init(
Y,
k,
density,
mod.row = "all",
mod.col = "all",
nstartR = 50,
nThreads = 1,
verbose = FALSE,
seed = 3
)A list containing the following elements:
A list of the results from the initialization.
The number of states fitted in each model.
A data frame listing the models that were initialized.
A data frame listing the initializations used for the required models.
A numeric vector to be used by the Eigen.HMM_fit() function.
The density used for the HMMs.
An array with dimensions p x r x num x t, where p is the number of
variables in the rows of each data matrix, r is the number of variables in the columns of each
data matrix, num is the number of data observations, and t is the number of time points.
An integer or vector indicating the number of states in the model(s).
A character string specifying the distribution to use in the HMM. Possible values are: "MVN" for the matrix-variate normal distribution, "MVT" for the matrix-variate t-distribution, and "MVCN" for the matrix-variate contaminated normal distribution.
A character string indicating the parsimonious structure of the row covariance (or scale) matrices. Possible values are: "EII", "VII", "EEI", "VEI", "EVI", "VVI", "EEE", "VEE", "EVE", "EEV", "VVE", "VEV", "EVV", "VVV", or "all". When "all" is specified, all 14 parsimonious structures are considered.
A character string indicating the parsimonious structure of the column covariance (or scale) matrices. Possible values are: "II", "EI", "VI", "EE", "VE", "EV", "VV", or "all". When "all" is specified, all 7 parsimonious structures are considered.
An integer specifying the number of random starts to consider.
A positive integer indicating the number of cores to use for parallel processing.
A logical value indicating whether to display the running output.
A positive integer specifying the seed for random generation.
data(simData)
Y <- simData$Y
init <- Eigen.HMM_init(Y = Y, k = 2, density = "MVT", mod.row = "EEE", mod.col = "EE", nstartR = 10)
Run the code above in your browser using DataLab