View source: R/trans_binarytree.R
trans_binarytree | R Documentation |
This is adapted from mstate::trans.illness
.
Create a complete binary tree transition matrix.
trans_binarytree(names, depth = 2)
names |
Node names |
depth |
Depth of tree; integer |
Matrix of TRUE and FALSE
trans_binarytree(c("A", "B"), depth = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.