transmat_to_long: Transition matrix to long format

View source: R/long_xx_transmat.R

transmat_to_longR Documentation

Transition matrix to long format

Description

Transition matrix to long format

Usage

transmat_to_long(probs)

Arguments

probs

Probability transition matrix

Value

array of from, to, prob

Examples


tree <- list(
   prob = matrix(data = c(NA, 0.5, 0.5), nrow = 1),
   vals = matrix(data = c(NA, 1, 2), nrow = 1))

transmat_to_long(tree$prob)


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