predict.smooth.Pspline {pspline}R Documentation

Smoothing Spline of Arbitrary Order at New Data

Description

Uses an object of class "smooth.Pspline" to evaluate a polynomial smoothing spline of arbitrary order or one of its derivatives at new argument values.

Usage

predict.smooth.Pspline(splobj, xarg, nderiv=0)

Arguments

splobj a fitted smooth.Pspline object.
xarg the argument values at which the spline or its derivative is to be evaluated.
deriv the order of the derivative required – default is 0, the function itself.

Details

The method produces results similar to function predict.smooth.spline, but the smoothing function is a natural smoothing spline rather than a B-spline smooth, and the order of the spline can be chosen freely, where order in this case means the order of the derivative that is penalized. smooth.spline penalizes the second derivative, and consequently only derivatives or order 0 or 1 are useful, but because smooth.Pspline penalizes a derivative of order m, derivatives up to order m-1 are useful. The general recommendation is to penalize the derivative two beyond the highest order derivative to be evaluated.

Value

a list with components xarg and dy; the xarg component is identical to the input xarg sequence, the dy component is the evaluated derivative of order deriv.

References

Heckman, N. and Ramsay, J. O. (1996) Spline smoothing with model based penalties. McGill University, unpublished manuscript.

See Also

predict.smooth.Pspline, plot.smooth.Pspline


[Package Contents]