Description Usage Arguments Value Author(s) See Also Examples
View source: R/StabilityFunctions.R
Function that assignes to each node the level at which that node is
in a specific tree (tree.num
) of the mutagenetic trees mixture model mixture
.
The start.val
is the number assigned to the events pruned from
the tree. This usually is the maximum depth of the tree with which the
tree specified with tree.num
will be compared.
1 | get.tree.levels(mixture, tree.num, start.val)
|
mixture |
An object of the class |
tree.num |
A |
start.val |
A |
The function returns a named numeric
vector. Its length equals the
number of genetic events in mixture
minus one (for the initial
null event which is always on level 0). The vector names correspond to
the names of the genetic events and each vector component gives the
level at which the respective event is in the num.tree
tree of mixture
.
Jasmina Bogojeska
comp.models
, comp.trees
, stability.sim
,
RtreemixModel-class
, fit-methods
1 2 3 4 5 6 | ## Generate two random RtreemixModel objects each with 3 components.
rand.mod <- generate(K = 3, no.events = 9, noise.tree = TRUE, prob =
c(0.2, 0.8))
## Get the tree levels of the 2nd component of the model rand.mod.
get.tree.levels(mixture = rand.mod, tree.num = 2, start.val = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.