View source: R/1_model_functions.R
define_transition_table | R Documentation |
Define the table for transition
define_transition_table(tmat)
tmat |
transition matrix in the format as in package 'mstate' |
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
the transition table with the probabilities
tmat <- rbind(c(1, 2), c(3, 4))
colnames(tmat) <- rownames(tmat) <- c("Healthy", "Dead")
define_transition_table(tmat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.