Learn R Programming

heemod (version 0.3.3)

check_matrix: Check Markov Model Transition Matrix

Description

Check whether a matrix fullfills the conditions to be a transition matrix.

Usage

check_matrix(x, ...)

Arguments

x
a matrix.
...
A list of informations to print when checks fail, for debugging purposes.

Details

This function is called by eval_matrix and should not be used directly.

Checks whether all rows sum to 1 and all probabilities are between 0 and 1.