trans_binarytree: Transition matrix to binary tree

View source: R/trans_binarytree.R

trans_binarytreeR Documentation

Transition matrix to binary tree

Description

This is adapted from mstate::trans.illness. Create a complete binary tree transition matrix.

Usage

trans_binarytree(names, depth = 2)

Arguments

names

Node names

depth

Depth of tree; integer

Value

Matrix of TRUE and FALSE

Examples


trans_binarytree(c("A", "B"), depth = 2)


n8thangreen/CEdecisiontree documentation built on Sept. 13, 2022, 5:25 a.m.