Learn R Programming

oncomodel (version 1.0)

comp.freq: Compare Model Probabilities to Frequencies

Description

Compares the model probabilities of single alterations and pairs to the observed frequencies and shows scatterplots for the comparisons.

Usage

comp.freq(x, tree, p)

Arguments

x
a binary data matrix with rows representing tumors and columns representing genetic alterations.
tree
the tree in matrix format.
p
a vector of edge parameters (model probabilities).

Examples

Run this code
  data(kidney)
  comp.freq(kidney$x, kidney$res$tree, kidney$res$p)

Run the code above in your browser using DataLab