Description Usage Arguments Details Value See Also Examples
Print a ROC curve given a variety of estimation methods.
1 2 3 |
true |
An object of class bn giving the true graph. This is converted to a CPDAG before comparision. |
maps |
An object of class |
bnpmls |
An object of class |
eps |
An object of class |
thresholds |
An object of class numeric, giving the thresholds at which to plot the graphs given by MCMC and PC-MCMC estimates |
use.cpdags |
A logical of length 1 indicating whether DAG should be converted to CPDAGs before computing the ROC curves. |
verbose |
A logical indicating whether to show progress bars etc. |
... |
Further arguments |
An alternative is given by: Werhli et al. Comparative evaluation of reverse engineering gene regulatory networks with relevance networks, graphical gaussian models and bayesian networks. Bioinformatics (2006) vol. 22 (20) pp. 2523
A lattice object, containing the ROC plot
1 2 3 4 5 6 7 8 9 10 11 12 13 | x1 <- factor(c(1, 1, 0, 1, 1, 1))
x2 <- factor(c(0, 1, 0, 1, 0, 1))
x3 <- factor(c(0, 1, 0, 0, 0, 0))
x <- data.frame(x1 = x1, x2 = x2, x3 = x3)
exact <- posterior(x, "exact")
eppost <- ep(exact)
mcmc <- posterior(x, "mc3", nSamples = 1000, nBurnin = 100)
rocplot(true = bn(integer(0), c(1,3), integer(0)),
eps = ep.list(eppost))
rocplot(true = bn(integer(0), integer(0), 2),
eps = ep.list(eppost))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.