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

From: Simon Wood <>
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
______________________________________________ mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.