powered by
This function returns a random, squared matrix of dimension dim that fulfills the properties of a transition probability matrix.
dim
sample_tpm(dim)
A transition probability matrix.
matrix
An integer, the matrix dimension.
integer
if (FALSE) { sample_tpm(dim = 3) }
Run the code above in your browser using DataLab