isemaj
isemaj

Reputation: 587

Degrees of freedom in the smoothing spline fit in a GAM formula

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

Answers (1)

Zheyuan Li
Zheyuan Li

Reputation: 73265

Because it is smoothing not interpolation. The degree of freedom tells how much complexity you want in the fitted spline.

Upvotes: 2

Related Questions