[R] About GAM in R, Need YOUR HELP!

Christopher W Ryan cryan at binghamton.edu
Mon Jun 20 13:41:34 CEST 2011


If you use the mgcv package for GAMs, I found this book very helpful:

Wood, SN
Generalized additive models: An introduction with R
CRC Press, 2006
ISBN-13: 9781584884743

--Chris Ryan
SUNY Upstate Medical University



On Mon, Jun 20, 2011 at 1:25 AM, pigpigmeow <glorykwok at hotmail.com> wrote:
> I'm beginner in R! I have a lot of problems on R.....
>
> I have three questions about GAM
> 1. What is the function of Gaussian distribution in GAM?(if I choose family
> is Gaussian)
> Is it used in the predictand value (Y)?
>
> 2. How to plot a graph the gam function?
> For example: y<-gam(a~s(b),family=gaussian (link=log)
> ,Data)
> how to plot x axis is s(b) and y axis is log a???
>
>
> 3. if I use GAM to create an equation with smoothing function
> For example: y<-gam(a~s(b)+s(c),family=gaussian (link=log),Data)
> how to get the coefficient of s(b) , s(c)
> My final target is getting the GAM equation to predict a, so I need to know
> how to get the coefficient of equation and how to write the equation!!!
>
>
> As I know, I'm silly to ask these questions. But GAM is very difficult to
> me. From now on, I need to clear the concept of GAM.
>
> Thank YOU!
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/About-GAM-in-R-Need-YOUR-HELP-tp3610522p3610522.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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.
>



More information about the R-help mailing list