Skip to content
Prev 312772 / 398513 Next

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

Andrew,

I think you mean....

dumb.example2$coefficients = averaged.models
                    ~~~~~~~

currently your code adds a new vector 'coeff' to the gam object, rather 
than modifying 'coefficients'. (A good example of why forgiving 
languages like R are dangerous, and you should really write everything 
in something utterly unforgiving like C - only kidding).

Simon
On 03/12/12 05:01, Andrew Crane-Droesch wrote: