Description Usage Arguments Value Author(s) References Examples
Plots the cross-validation curve as a function of the lambda values used.
1 2 |
x |
fitted " |
type.measure |
criteria to use for cross-validation. Currently three options. The default is |
A plot is produced, and nothing is returned.
Hui Lin, longqiman@gmail.com
L. Meier, S. van de Geer, and P. Buhlmann, The group lasso for logistic regression, J. R. Stat. Soc. Ser. B Stat. Methodol. 70 (2008), pp. 53-71.
G.W. Yeo and C.B. Burge, Maximum entropy modeling of short sequence motifs with applications to RNA splicing signals, J. Computnl Biol. 11 (2004), pp. 475-494.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
data("sim1_da1")
trainx = dplyr::select(sim1_da1, -y)
trainy = sim1_da1$y
# index of the group
index <- gsub("\\..*", "", names(trainx))
# nlam is the number of values of tuning variable
nlam <- 10
# type of prediction
type = "link"
# number of cross-validation folds
kfold <- 10
cv.fit <- cv_glasso(trainx, trainy, nlam = nlam, kfold = kfold)
plot.cv_glasso(cv.fit)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.