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

Reply via email to