Generate a smoothing spline function with the parameters of your choice.
Source:R/interpolations.R
getSmoothSplineInterpolation.RdProduces an interpolation function of the form described in interpolations.
Arguments
- ...
any arguments other than
xandyto be passed tostats::smooth.spline.
Value
A function of the form described in interpolations, i.e.,
accepting the arguments dates.in, y.in, and dates.out
and returning predictions from a smooth spline function for y.out.
That function will use the arguments supplied in ....