Re: [R] Time trends with GAM

2013-03-27 Thread Antonio P. Ramos
Thanks. On Tue, Mar 26, 2013 at 4:45 AM, Simon Wood wrote: > For 1) see reply just sent to R help... > "Re: [R] Use pcls in "mgcv" package to achieve constrained cubic spline" > (I'm assuming you mean to fix the value of the smooth at a particular knot > location - i.e. to impose a constraint l

Re: [R] Time trends with GAM

2013-03-26 Thread Simon Wood
For 1) see reply just sent to R help... "Re: [R] Use pcls in "mgcv" package to achieve constrained cubic spline" (I'm assuming you mean to fix the value of the smooth at a particular knot location - i.e. to impose a constraint like f(t_0) = b). For 2) try 'model.matrix', or 'predict.gam' with a

[R] Time trends with GAM

2013-03-22 Thread Antonio P. Ramos
Hi all, I am using GAM to model time trends in a logistic regression. Yet I would like to extract the the fitted spline from it to add it to another model, that cannot be fitted in GAM or GAMM. Thus I have 2 questions: 1) How can I fit a smoother over time so that I force one knot to be at a par