[R] use of glm and cubic splines

Thomas Lumley tlumley at u.washington.edu
Tue Oct 7 16:16:42 CEST 2003


On Tue, 7 Oct 2003, Niel Hens wrote:

>
> When I fit a model like glm(gb~bs(age,df=6)), I obtain 7 estimates. Can
> anybody explain me where they stand for?

Well, yes and no.  They are coefficients of terms in the b-spline basis,
but that probably isn't very illuminating.

You can use termplot() on your fitted model to see the smooth curve that
has been fitted and is specified by these estimates. The only splines
where you get simple interpretations of individual coefficients are
linear splines.

	-thomas




More information about the R-help mailing list