Skip to contents

This function returns a random, squared matrix of dimension dim that fulfills the properties of a transition probability matrix.

Usage

sample_tpm(dim)

Arguments

dim

An integer, the matrix dimension.

Value

A transition probability matrix.

Examples

if (FALSE) {
sample_tpm(dim = 3)
}