[R] GAM question

Simon Wood s.wood at bath.ac.uk
Mon Oct 5 10:57:32 CEST 2009


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:
> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html and provide commented, minimal,
> self-contained, reproducible code.

-- 
> Simon Wood, Mathematical Sciences, University of Bath, Bath, BA2 7AY UK
> +44 1225 386603  www.maths.bath.ac.uk/~sw283




More information about the R-help mailing list