View source: R/mainFunctions.R
plot.rq.pen.seq.cv | R Documentation |
Provides plots of cross-validation results by lambda. If septau is set to TRUE then plots the cross-validation results for each quantile. If septau is set to FALSE then provides one plot for cross-validation results across all quantiles.
## S3 method for class 'rq.pen.seq.cv'
plot(x, septau = TRUE, tau = NULL, logLambda = TRUE, main = NULL, ...)
x |
The rq.pen.seq.cv object |
septau |
If set to true then optimal tuning parameters are selected seperately for each quantile and there will be a different plot for each quanitle. |
tau |
Quantiles of interest. |
logLambda |
Whether log(lambda) is used for the x-axis |
main |
Title to the plot |
... |
Additional parameters sent to the plot function. |
Plots of the cross validation results by lambda.
Ben Sherwood, ben.sherwood@ku.edu
set.seed(1)
x <- matrix(rnorm(100*8,sd=1),ncol=8)
y <- 1 + x[,1] + 3*x[,3] - x[,8] + rt(100,3)
m1 <- rq.pen.cv(x,y,tau=c(.1,.3,.7))
plot(m1)
plot(m1,septau=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.