Re: [R] GAM question

2009-10-05 Thread Simon Wood
If you mean the values of the smooth function for different values of its argument then take a look at setting `type=terms' for `predict.gam'... the returns predictions split up by individual smooth terms (and any parametric terms) On Thursday 01 October 2009 12:49, Daniel Rabczenko wrote:

[R] GAM question

2009-10-01 Thread Daniel Rabczenko
Hello evyrone, I would be grateful if you could help me in (I hope) simple problem. I fit a gam model (from mgcv package) with several smooth functions . I don't know how to extract values of just one smooth function. Can you please help me in this? Kind regards, Daniel Rabczenko

Re: [R] GAM question

2009-10-01 Thread joris meys
Hi Daniel, I presume you mean coefficients by values. Try ?gamObject and read the info in the help file. A GAM object (returned by the function gam() ) contains an element coefficients that is easily accessible. That one contains all estimated coefficients, including those for the smooth