[R] Errors running gam examples

From: Rick Bilonick <rab_at_nauticom.net>
Date: Mon, 10 Nov 2008 00:04:37 -0500

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.

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. Received on Mon 10 Nov 2008 - 05:10:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 10 Nov 2008 - 06:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive