conf_mat | R Documentation |
A diagnostic function that tests the reliability of estimation procedures given the inferred transition rates
conf_mat(N, res, plot = TRUE)
N |
(numeric) number of simulations |
res |
(mcmc_hmm_*) simulated MCMC HMM model |
plot |
(logical) plot confusion matrix. By default |
First the data is simulated given the inferred model parameters and transition
rates. Then posterior probabilities are calculated and states are inferred.
Finally, the inferred states and simulated states are compared via
confusion_matrix
function.
confusion_matrix
if (interactive()) {
res <- conf_mat(100, example_hmm_mcmc_normal, plot = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.