sample_transition_probability_matrix {oeli}R Documentation

Sample transition probability matrices

Description

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

Usage

sample_transition_probability_matrix(dim, state_persistent = TRUE)

Arguments

dim

An integer, the matrix dimension.

state_persistent

Set to TRUE (default) to put more probability on the diagonal.

Value

A transition probability matrix.

Examples

sample_transition_probability_matrix(dim = 3)


[Package oeli version 0.5.2 Index]