Description Usage Arguments Author(s) References See Also Examples
The function plots the coefficient or stability traces for the lasso element of a BioMark object.
1 |
object |
An object of class |
... |
Further plotting arguments. |
Ron Wehrens
N. Meinshausen and P. Buhlmann: Stability Selection. J. R. Statist. Soc. B 72, 417-473 (2010)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(BioMark)
data(spikedApples)
mycols <- rep("gray", ncol(spikedApples$dataMatrix))
mycols[spikedApples$biom] <- "red"
myltys <- rep(2, ncol(spikedApples$dataMatrix))
myltys[spikedApples$biom] <- 1
par(mfrow = c(1,2))
apple.coef <- get.biom(X = spikedApples$dataMatrix,
Y = factor(rep(0:1, each = 10)),
ncomp = 2:3, type = "coef")
traceplot(apple.coef, col = mycols, lty = myltys)
apple.stab <- get.biom(X = spikedApples$dataMatrix,
Y = factor(rep(0:1, each = 10)),
fmethod = c("vip","lasso"), type = "stab")
traceplot(apple.stab, col = mycols, lty = myltys)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.