plot.vsc: Graphical illustration of selection uncertainty

Description Usage Arguments Examples

View source: R/vsc_plot.r

Description

Graphical illustration of selection uncertainty

Usage

1
2
3
4
5
## S3 method for class 'vsc'
plot(x, is.box.plot = TRUE, compare.method.fit = NULL,
  cv.mod = NULL, with.thr = TRUE, to.shade = TRUE,
  ci.type = "original", level = 0.1, ylim = NULL, xlim = NULL,
  var.freq.thr = 0.05, return.lim = FALSE, ...)

Arguments

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

Examples

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)

christineyuen/VSC documentation built on Oct. 8, 2019, 10:45 a.m.