Solved – Splines in GLM and GAM

generalized linear modelsplines

Is it wrong that splines are only available in GAM-models, and not in GLM-models? I heard this a while back, and wonder if this is just a misconception, or has some truth to it.
Here is an illustration:
http://www.stats.uwo.ca/faculty/bellhouse/glm%20and%20gam.pdf

Best Answer

You are mistaken. Splines have a linear representation using derived covariates. As an example, a quadratic trend is non-linear, but can be modeled in a linear model by taking: $E[Y|X] = \beta_0 + \beta_1 X + \beta_2 X^2$, thus $X$ and its square are input into a linear model.

The spline can simply be seen as a sophisticated parametrization of one or more continuously or pseudo-continuously valued covariates.