| convert {oncomodel} | R Documentation |
Converts a tree from matrix to Newick format, assigning to each edge the negative log of the corresponding model probability.
convert(tree, p, var.names)
tree |
the tree in matrix format. |
p |
a vector of edge parameters (model probabilities). |
var.names |
a character vector of variable names. |
a character vector of the tree in Newick format
data(kidney) convert(kidney$tree, kidney$p, colnames(kidney$x))