check_transition_probability checks if transition probabilities are in [0, 1].

check_transition_probability(a_P, err_stop = FALSE, verbose = FALSE)

Arguments

a_P

A transition probability array.

err_stop

Logical variable to stop model run if set up as TRUE. Default = FALSE.

verbose

Logical variable to indicate print out of messages. Default = FALSE

Value

This function stops if transition probability array is not valid and shows what are the entries that are not valid