check_sum_of_transition_array checks if each of the rows of the transition matrices sum to one.

check_sum_of_transition_array(a_P, n_states, n_t, err_stop = FALSE,
  verbose = FALSE)

Arguments

a_P

A transition probability array.

n_states

Number of health states.

n_t

Number of cycles.

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

The transition probability array and the cohort trace matrix.