[R] Errors running gam examples

Rick Bilonick rab at nauticom.net
Mon Nov 10 06:04:37 CET 2008


I'm running R 2.8.0 under Fedora 8 (32-bit). I installed the gam
package. I can fit gam models, but I get error messages when I try to
use step.gam and plot.gam, even for examples:

> library(gam)
> ?plot.gam
> data(gam.data)
> gam.object <- gam(y ~ s(x,6) + z,data=gam.data)
> plot(gam.object,se=TRUE)
Error in dim(data) <- dim : attempt to set an attribute on NULL

summary(gam.object) appears to work OK. The same thing happens if I use
my own data and model.

Package:       gam
Title:         Generalized Additive Models
Date:          2008-05-28
Version:       1.0

I was able to get step.gam to work on its example but it doesn't work on
my model.

Has anyone else run into this?

Rick B.



More information about the R-help mailing list