[R] use of gam

Kerry Bush kerryrekky at yahoo.com
Tue Jun 14 00:51:01 CEST 2005


Suppose I fit the following model:

>library(gam)
....
>fit <- gam(y~x1+x2+s(x3),family=binomial)

and then I use

> fitf$coef
       x1        x2     s(x3) 
4.1947460 2.7967200 0.0788252 

are the coefficients for x1 and x2 the estimated
coefficients? what is the meaning of s(x3)? since this
is a non-parametric component, it may not belong here
as a coefficient, am I right?




More information about the R-help mailing list