predict.orderedLasso.path: make predictions from a fitted "orderedLasso.path" object

Description Usage Arguments Value

View source: R/funcs.R

Description

Similar to other predict methods, this functions predicts fitted values from a fitted "orderedLasso" object.

Usage

1
2
3
## S3 method for class 'orderedLasso.path'
predict(object, newdata, s = NULL,
  exact = FALSE, ...)

Arguments

object

fitted "orderedLasso.path" model

newdata

Matrix of new values for object at which predictions are to be made.

s

Value(s) of the penalty parameter lambda at which predictions are required. Default is the entire sequence used to create the model.

exact

If exact = TRUE, and predictions are to made at values of s not included in the original fit, these values of s are merged with object$lambda, and the model is refit before predictions are made. If exact = FALSE (default), then the predict function uses linear interpolation to make predictions for values of s that do not coincide with those used in the fitting algorithm. Note that exact = TRUE is fragile when used inside a nested sequence of function calls. predict.orderedLasso() needs to update the model, and expects the data used to create it to be around.

...

Not used. Other arguments to predict.

Value

nfit

A matrix or a vector of fitted values


orderedLasso documentation built on May 2, 2019, 6:36 a.m.