Skip to content
Prev 312626 / 398506 Next

[mgcv][gam] Manually defining my own knots?

Hi Andrew,

mgcv matches the knots to the smooth arguments by name. If an element of 'knots' has
no name it will be ignored. The following will do what you want...

dumb.example = gam(y~s(x,k=3),knots=list(x=dumb.knots))

best,
Simon
On 29/11/12 23:44, Andrew Crane-Droesch wrote: