Get predictions from a 'trendfilter' object.

# S3 method for trendfilter
predict(obj, lambda = NULL, x_eval = NULL, zero_tol = 1e-10, ...)

Arguments

obj

An object of class/subclass 'trendfilter'.

lambda

One or more lambda values to evaluate predictions for. Defaults to lambda = NULL, in which case, predictions are computed for every model in obj$lambda.

x_eval

Vector of inputs where the trend filtering model(s) will be evaluated. Defaults to x_eval = NULL, in which case x_eval = obj$x.

zero_tol

Threshold parameter that controls the point at which a small coefficient value is set to zero. Defaults to zero_tol = 1e-6.

...

Additional named arguments. Currently unused.