[R] problems in package gam

Anke Konrad akonrad at nmsu.edu
Tue Apr 28 07:07:44 CEST 2009


Hi all,

until now I have generally used mgcv for gams, however, I decided to 
experiment with the package gam, and have ran into the previously 
outlined problem (see below), for which I have not yet found a solution 
in the archives. If anyone has any suggestions, please let me know.

The only difference for my case is that I am running R 2.9.0 under windows

Thank you!




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