predict.smooth.spline(object, x, deriv)
smooth.spline object.
x; the fit is linear beyond the range of the original
x values.
x and
y; the
x component is identical to the input
x sequence, the
y component is the fitted derivative of order
deriv.
This function is a method for the generic function for class smooth.spline. It can be invoked by calling for an object x of the appropriate class, or directly by calling regardless of the class of the object.
fit <- smooth.spline(x, y) # smooth.spline fit x2 <- seq(from=-100, to=100, length=1000) # a fine grid of points fit2 <- predict(fit, x2) # evaluate fit at x2