check_sum_of_transition_array: Check if the sum of transition probabilities equal to one.

View source: R/02_decision_model_functions.R

check_sum_of_transition_arrayR Documentation

Check if the sum of transition probabilities equal to one.

Description

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

Usage

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.


DARTH-git/darthpack documentation built on March 10, 2024, 3:31 p.m.