Description Usage Arguments Details Author(s) References See Also Examples
Plot the cross validation performance, for linear model CV-PMSE will be plotted, for logistic model CV-AUC will be plotted.
1 | cv.plot(cv.out)
|
cv.out |
the object from the cv.grppenalty function |
The cv.plot shows the cross validation performance relative to the kappa and lambda. This is to visualize the overall cross validation process.
Dingfeng Jiang
Jiang, D., Huang, J., Zhang, Y. (2011). The cross-validated AUC for MCP-Logistic regression with high-dimensional data. Statistical Methods in Medical Research, online first.
Yuan, M., Lin, Y. (2006). Model selection and estimation in regression with grouped variables. Journal of Royal Statistical Society Series B, 68 (1): 49 - 67.
Meier, L., van de Geer, S., B\ā€¯uhlmann, P., (2008). The group lasso for logistic regression. Journal of Royal Statistical Society Series B, 70 (1): 53 - 71
1 2 3 4 5 6 7 8 9 10 11 12 | set.seed(10000)
n=100
ybi=rbinom(n,1,0.4)
yga=rnorm(n)
p=20
x=matrix(rnorm(n*p),n,p)
index=rep(1:10, each = 2)
## cv.out=cv.grppenalty(yga, x, index, "gaussian", "l1", "mcp", 1/2.7)
## cv.plot(cv.out)
## multiple kappas
cv.out=cv.grppenalty(yga, x, index, "gaussian", "l1", "mcp", c(0,0.1,1/2.7))
cv.plot(cv.out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.