- y
A numeric matrix of dimension \(T \times d\), where each row
corresponds to a \(d\)-dimensional observation at time \(t\).
- xlabeled
An integer vector of length \(T\) with partially observed
states. Known states must be integers in \(1, \ldots, N\); unknown states
should be coded as NA.
- nstates
Integer. The total number of hidden states to fit.
- ppi_start
Numeric vector of length nstates giving the initial
state distribution. If NULL, defaults to c(1,0,...,0).
- A_start
Numeric nstates \(\times\) nstates transition probability
matrix. If NULL, defaults to a transition matrix with diagonal
entries equal to 1-0.01*(nstates-1) and all off-diagonal entries equal to 0.01.
- mean_start
List of length nstates containing numeric mean
vectors for the emission distributions.
- covariance_start
List of covariance matrices for the emission
distributions. Must be of length nstates, unless
equal_covariance = TRUE, in which case it must be of length 1.
If NULL, defaults to identity matrices.
- known_mean
Optional list of known mean vectors. Use NA for
unknown elements.
- known_covariance
Optional list of known covariance matrices. Use
NA for unknown elements.
- equal_covariance
Logical. If TRUE, all states are constrained
to share a common covariance matrix.
- covariance_structure
Character string specifying the covariance
structure. Either "full" (default) or "diagonal".
- max_iter
Maximum number of EM iterations. Default is 200.
- tol
Convergence tolerance for log-likelihood and parameter change.
Default is 1e-3.
- verbose
Logical. If TRUE, prints log-likelihood progress at
each iteration.