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

Wensui Liu liuwensui at gmail.com
Mon Apr 2 20:08:15 CEST 2007

Assumed you are using the gam package developed by Hastie, you might
use step.gam() to do so.

On 4/2/07, Jin Huang <crystal_huangjin at yahoo.com.cn> wrote:
> Dear all,
>   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.
>   Thanks a lot,
>   Jin
>   ----
>   North Carolina State University
>   USA
> ---------------------------------
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help at 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.

WenSui Liu
A lousy statistician who happens to know a little programming

More information about the R-help mailing list