Skip to content
Prev 321793 / 398500 Next

Understanding why a GAM can't suppress an intercept

hi Andrew.

gam does suppress the intercept, it's just that this doesn't force the 
smooth through the intercept in the way that you would like. Basically 
for the parameteric component of the model '-1' behaves exactly like it 
does in 'lm' (it's using the same code). The smooths are 'added on' to 
the parametric component of the model, with sum to zero constraints to 
force identifiability.

There is a solution to forcing a spline through a particular point at
http://r.789695.n4.nabble.com/Use-pcls-in-quot-mgcv-quot-package-to-achieve-constrained-cubic-spline-td4660966.html
(i.e. the R help thread "Re: [R] Use pcls in "mgcv" package to achieve 
constrained cubic spline")

best,
Simon
On 16/04/13 22:36, Andrew Crane-Droesch wrote: