Learn R Programming

cxreg (version 1.0.0)

predict.cv.classo: make predictions from a "cv.classo" object.

Description

This function makes predictions from a cross-validated classo model, using the stored "classo.fit" object.

Usage

# S3 method for cv.classo
predict(object, newx, s = c("lambda.1se", "lambda.min"), ...)

Value

The object returned depends on the ... argument which is passed on to the predict method for classo objects.

Arguments

object

Fitted "cv.classo" object.

newx

Matrix of new values for x at which predictions are to be made. Must be a matrix

s

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.

Author

Younghoon Kim, Navonil Deb, Sumanta Basu
Maintainer: Younghoon Kim yk748@cornell.edu

Details

This function makes it easier to use the results of cross-validation to make a prediction.

See Also

classo, and print, and coef methods, and cv.classo.