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

View source: R/check_transition_probabilities.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_rows = NULL,
  n_states = NULL,
  n_cycles,
  err_stop = TRUE,
  verbose = TRUE
)

Arguments

a_P

A transition probability array/ matrix.

n_rows

Number of rows (individuals), appropriate for microsimulation models.

n_states

Number of health states in a Markov trace, appropriate for Markov models.

n_cycles

Number of cycles.

err_stop

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

verbose

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

Value

The transition probability array and the cohort trace matrix.


DARTH-git/darthtools documentation built on April 3, 2025, 2:12 p.m.