View source: R/plot.pocrepath.R
plot.pocrepath | R Documentation |
For a series models built by POCRE for different tuning paramter values, it provides three types of plots to help select an appropriate tuning parameter value.
## S3 method for class 'pocrepath' plot(x, which=1:3, cex=.5, lwd=1, ...)
x |
a pocrepath object, i.e., the result from pocrepath. |
which |
1 for plotting the tuning parameter vs. (beta, #[beta!=0]), 2 for plotting the tuning parameter vs. (beta, R^2), 3 for plotting the tuning parameter vs. (R^2, #[beta!=0]). |
cex |
A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default, see par. |
lwd |
line width, see par. |
... |
additional arguments accepted by ggplot. |
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
Zhang D (2018). R package POCRE: Exploring high-dimensional data via supervised dimension reduction. Manuscript.
Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.
pocrepath
, plot.pocre
, pocre
.
data(simdata) xx <- scale(as.matrix(simdata[,-1])) yy <- scale(as.matrix(simdata[,1])) # ppres <- pocrepath(yy, xx, delta=0.01) ppres <- pocrepath(yy, xx) # plot(ppres) plot(ppres,which=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.