Description Usage Arguments Details References See Also Examples
View source: R/plot.cv.lrome.R
Plots the cross-validation curve, and upper and lower standard deviation
curves, as a function of the lambda
values used. This function is modified based on the plot.cv
function from the glmnet
package.
1 2 |
x |
fitted |
sign.lambda |
either plot against |
... |
other graphical parameters to plot |
A plot is produced.
Yang, Y. and Zou, H. (2012), "An Efficient Algorithm for Computing The HHSVM and Its Generalizations," Journal of Computational and Graphical Statistics, 22, 396-415.
BugReport: https://github.com/emeryyi/fastcox.git
Friedman, J., Hastie, T., and Tibshirani, R. (2010), "Regularization paths for generalized
linear models via coordinate descent," Journal of Statistical Software, 33, 1.
http://www.jstatsoft.org/v33/i01/
1 2 3 4 5 6 7 8 9 | # fit an elastic net penalized logistic regression
# with lambda2 = 1 for the L2 penalty. Use the
# logistic loss as the cross validation
# prediction loss. Use five-fold CV to choose
# the optimal lambda for the L1 penalty.
data(FHT)
set.seed(2011)
cv=cv.lrome(FHT$x, FHT$y, lambda2 = 1, nfolds=5)
plot(cv)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.