define_transition_table: Define the table for transition

Description Usage Arguments Details Value Examples

View source: R/1_model_functions.R

Description

Define the table for transition

Usage

1

Arguments

tmat

transition matrix in the format as in package 'mstate'

Details

Generating a table for transition matrix for efficient understanding and checking The transition matrix in the format as per 'mstate' package is transformed to a table. if tmat is not a square matrix, it gives error else it spells out the transition number, probability name and from state to state

Value

the transition table with the probabilities

Examples

1
2
3
tmat <- rbind(c(1, 2), c(3, 4))
colnames(tmat) <- rownames(tmat) <- c("Healthy", "Dead")
define_transition_table(tmat)

packDAMipd documentation built on March 3, 2021, 5:07 p.m.