View source: R/RHmm-HyperNew.R
asymptoticCov | R Documentation |
This function calculates the empirical asymptotic covariance matrix of the HMM parameters
asymptoticCov(HMM, obs)
HMM |
A HMMClass or a HMMFitClass object |
obs |
The vector, matrix, data frame, list of vectors or list of matrices of observations |
A matrix
The Information matrix (of the independent parameters) is computed using the Lystig and Hugues's algorithm. Then the covariance matrix is computed by inversion of this information matrix.
Lystig Theodore C. and Hugues James P. (2002) Exact Computation of the Observed Information Matrix for Hidden Markov Models, Journal of Computational and Graphical Statistics, Vol. 11, No 3, 678-689.
HMMFit
data(n1d_3s)
Res_n1d_3s<-HMMFit(obs_n1d_3s, nStates=3)
covMat <- asymptoticCov(Res_n1d_3s, obs_n1d_3s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.