Learn R Programming

SubLasso (version 1.0)

predict.sublasso: Predict method for SubLasso fits.

Description

Similar to other predict methods, this functions predicts fitted values, logits, coefficients and more from a fitted "SubLasso" object.

Usage

## S3 method for class 'sublasso':
predict(object, xpred, type, s, ...)

Arguments

object
Fitted "SubLasso" model object.
xpred
Matrix of new values for x at which predictions are to be made. Must have the same row with x
type
type=c("link","response","class"). Default is "class";Type of prediction required. Type "link" gives the linear predictors; Type "response" gives the fitted probabilities; Type "class" produces the class label corresponding to the maximum probability.
s
Value(s) of the penalty parameter lambda at which predictions are required. Default is obtained by CV method.
...
Currently not used

Value

  • Predyit depends on type.