Reputation: 587
If the smoothing spline is simply a natural cubic spline with knots at every unique value of x_i
. Then why does gam::s()
in R need a degree of freedom?
Upvotes: 0
Views: 523
Reputation: 73265
Because it is smoothing not interpolation. The degree of freedom tells how much complexity you want in the fitted spline.
Upvotes: 2