Re: [R] How to choose the df when using GAM function?

From: Simon Wood <s.wood_at_bath.ac.uk>
Date: Tue 03 Apr 2007 - 08:54:57 GMT

> When using GAM function in R, we need to specify the degree of freedom
> for the smooth function (i.e. s=(x, df=#)). I am wondering how to choose an
> appropriate df.
--- you could use the gam function in package mgcv. It will select the effective degrees of freedom for you automatically using GCV or (generalized) AIC. Simon

-- 

> Simon Wood, Mathematical Sciences, University of Bath, Bath, BA2 7AY UK
> +44 1225 386603 www.maths.bath.ac.uk/~sw283
______________________________________________ R-help@stat.math.ethz.ch 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.
Received on Tue Apr 03 19:02:38 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 03 Apr 2007 - 09:30:45 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.