predict.sublasso: Predict method for SubLasso fits.

Description Usage Arguments Value

View source: R/predict.sublasso.R

Description

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

Usage

1
2
## 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

Predy

it depends on type.


SubLasso documentation built on May 29, 2017, 8:45 p.m.