Learn R Programming

grpsel (version 1.3.2)

predict.cv.grpsel: Predict function for cv.grpsel object

Description

Generate predictions for new data using specified values of the tuning parameters.

Usage

# S3 method for cv.grpsel
predict(object, x.new, lambda = "lambda.min", gamma = "gamma.min", ...)

Value

A matrix of predictions.

Arguments

object

an object of class cv.grpsel

x.new

a matrix of new values for the predictors

lambda

the value of lambda indexing the desired fit

gamma

the value of gamma indexing the desired fit

...

any other arguments

Author

Ryan Thompson <ryan.thompson-1@uts.edu.au>