Skip to contents

New Model Constructors

New transition matrix

New tree data

New long data

Usage

new_transmat(transmat, ...)

new_tree_dat(tree_dat, ...)

new_dat_long(dat_long, fill_edges = TRUE, fill_probs = FALSE)

Arguments

transmat

Transition probability matrix. Rows are from nodes and columns are to nodes.

...

Additional arguments

tree_dat

Hierarchical tree structure of parents and children in a list of vectors with integer values.

dat_long

Long format data frame with from, to, prob, vals columns.

fill_edges

If need missing edges to connect to a sink state; logical

fill_probs

Fill in missing probabilities; logical