predict.svrpath function

Make predictions from a "svrpath" object

Make predictions from a "svrpath" object

Provides a prediction value at a given lambda from svrpath object.

## S3 method for class 'svrpath' predict(object, newx, lambda = NULL, criterion = "sic", ...)

Arguments

  • object: The svrpath object
  • newx: Values of x to be predicted. This is a matrix with observations per row. Default is x in the epspath object.
  • lambda: The value of the regularization paramter, lambda.
  • criterion: It provides predictions at an optimal lambda selected by SIC or GACV. "sic" or "gacv".
  • ...: Generic compatibility

Returns

In each case, the desired prediction.

Examples

# The 'eobj' is given by examples description of epspath(). predict.svrpath(obj, lambda = 10) # or predict(obj, criterion = 'sic')

Author(s)

Do Hyun Kim, Seung Jun Shin

  • Maintainer: Do Hyun Kim
  • License: GPL (>= 2)
  • Last published: 2018-06-29

Useful links