Description Usage Arguments Details Value Author(s) References See Also Examples
Does kfold crossvalidation for gcdnet, produces a plot,
and returns a value for lambda
. This function is modified based on the cv
function from the glmnet
package.
1 
x 

y 
response variable or class label 
lambda 
optional usersupplied lambda sequence; default is

nfolds 
number of folds  default is 5. Although 
foldid 
an optional vector of values between 1 and 
pred.loss 
loss function to use for crossvalidation error. Valid options are:
Default is 
delta 
parameter delta only used in HHSVM for computing margin based loss function, only available with 
... 
other arguments that can be passed to gcdnet. 
The function runs gcdnet
nfolds
+1 times; the
first to get the lambda
sequence, and then the remainder to
compute the fit with each of the folds omitted. The average error and standard deviation over the
folds are computed.
an object of class cv.gcdnet
is returned, which is a
list with the ingredients of the crossvalidation fit.
lambda 
the values of 
cvm 
the mean crossvalidated error  a vector of length

cvsd 
estimate of standard error of 
cvupper 
upper curve = 
cvlower 
lower curve = 
nzero 
number of nonzero coefficients at each 
name 
a text string indicating type of measure (for plotting purposes). 
gcdnet.fit 
a fitted 
lambda.min 
The optimal value of 
lambda.1se 
The largest value of 
Yi Yang and Hui Zou
Maintainer: Yi Yang <yiyang@umn.edu>
Yang, Y. and Zou, H. (2012), "An Efficient Algorithm for Computing The HHSVM and Its Generalizations," Journal of Computational and Graphical Statistics, 22, 396415.
BugReport: http://code.google.com/p/gcdnet/
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/
gcdnet
, plot.cv.gcdnet
, predict.cv.gcdnet
, and coef.cv.gcdnet
methods.
1 2 3 4 5 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs in the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.