Description Usage Arguments Details Value Note Author(s) References See Also Examples
Function for fitting a mutagenetic trees mixture model to a given dataset
data. The dataset and the number of trees K have to be specified.
The function estimates K-oncogenetic trees mixture model from the
specified data by using an EM-like learning algorithm. The first tree
component of the model has a star topology and is referred to as the
noise component.
1 |
data |
An |
K |
An |
... |
|
When K = 1 and noise = FALSE a single mutagenetic tree is fit to the data. When K = 1 and noise = TRUE a star mutagenetic tree is fit to the data. If K > 1 the first mutagenetic tree is always the star, i.e. the case K > 1 and noise = FALSE is not possible.
The method returns an RtreemixModel object that represents the
K-trees mixture model learned from the given dataset.
When you have too few data samples always use the default value TRUE
for the equal.edgeweights. Like this you make sure that all possible
patterns (sets of events) have non-zero probabilities. If they don't the
fitting procedure will not be completed and you will get an error!
Jasmina Bogojeska
Learning multiple evolutionary pathways from cross-sectional data, N. Beerenwinkel et al.
RtreemixData-class, RtreemixModel-class,
generate-methods, bootstrap-methods,
confIntGPS-methods
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Create an RtreemixData object from a randomly generated RtreemixModel object.
rand.mod <- generate(K = 3, no.events = 9, noise.tree = TRUE, prob = c(0.2, 0.8))
data <- sim(model = rand.mod, no.draws = 300)
show(data)
## Create an RtreemixModel object by fitting model to the given data.
mod <- fit(data = data, K = 3, equal.edgeweights = TRUE, noise = TRUE)
show(mod)
## See the number of tree components in the mixture model.
numTrees(mod)
## See the weights of the branchings from the fitted mixture model.
Weights(mod)
## See a specific tree component k.
getTree(object = mod, k = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.