Description Usage Arguments Examples
Graphical illustration of selection uncertainty
1 2 3 4 5 |
x |
fitted results from VSC::vsc() |
is.box.plot |
TRUE to get a box plot like uncertainty illustration. FALSE to get a "confidence interval like" uncertainty illustration. Default is TRUE |
compare.method.fit |
(optional) fitted results from VSC::lm.compare.methods() |
cv.mod |
(optional) fitted results from cross validation |
with.thr |
whether the selection by the VSC should be show. Default is TRUE |
to.shade |
whether to shade the graph by the relative frequency calculated by VSC. Default is TRUE |
ci.type |
todo |
level |
(only use when is.box.plot is FALSE) the significant level of the "confidence interval". Default is 0.1 |
ylim |
range of y shown in the graph |
xlim |
range of x shown in the graph |
var.freq.thr |
minimim variable frequency to show |
return.lim |
TRUE to return the xlim and ylim |
... |
additional argument for plot |
1 2 3 4 5 6 | X = matrix(rnorm(1000), nrow = 100)
Y = rowSums(X[,1:3])+rnorm(100)
mod.0 = vsc(X, Y, intercept = FALSE, q = 0, method.names = NULL)
cv.mod = lm.cv(X, Y, intercept = FALSE, fit.percent = 0.5, num.repeat = 50)
compare.mod = lm.compare.method(X, Y, intercept = FALSE)
plot(mod.0, compare.method.fit = compare.mod, cv.mod = cv.mod$est.b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.