Learn R Programming

hmcdm (version 2.1.2)

rOmega: 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)

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.

Arguments

TP

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

Examples

Run this code
K = ncol(Q_matrix)
TP = TPmat(K)
Omega_sim = rOmega(TP)

Run the code above in your browser using DataLab