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

Simon Wood s.wood at bath.ac.uk
Tue Apr 3 10:54:57 CEST 2007

>   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) 


> 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