This function makes predictions from a cross-validated classo model, using
the stored "classo.fit" object.
# S3 method for cv.classo
predict(object, newx, s = c("lambda.1se", "lambda.min"), ...)The object returned depends on the ... argument which is passed
on to the predict method for classo objects.
Fitted "cv.classo" object.
Matrix of new values for x at which predictions are to be
made. Must be a matrix
Value(s) of the penalty parameter lambda at which
predictions are required. Default is the value s="lambda.1se" stored
on the CV object. Alternatively s="lambda.min" can be used. If
s is numeric, it is taken as the value(s) of lambda to be
used. (For historical reasons we use the symbol 's' rather than 'lambda' to
reference this parameter)
Not used. Other arguments to predict.
Younghoon Kim, Navonil Deb, Sumanta Basu
Maintainer:
Younghoon Kim yk748@cornell.edu
This function makes it easier to use the results of cross-validation to make a prediction.
classo, and print, and coef methods, and
cv.classo.