rOmega: Generate a random transition matrix for the first order...

View source: R/RcppExports.R

rOmegaR Documentation

Generate a random transition matrix for the first order hidden Markov model

Description

Generate a random transition matrix under nondecreasing learning trajectory assumption

Usage

rOmega(TP)

Arguments

TP

A 2^K-by-2^K dichotomous matrix of indicating possible transitions under the monotonicity assumption, created with the TPmat function

Value

A 2^K-by-2^K transition matrix, the (i,j)th element indicating the transition probability of transitioning from i-th class to j-th class.

Examples

K = ncol(Q_matrix)
TP = TPmat(K)
Omega_sim = rOmega(TP)

hmcdm documentation built on March 31, 2023, 8:07 p.m.