[R] ERROR: gamm function (mgcv package). attempt to set an attribute on NULL
Simon Wood
s.wood at bath.ac.uk
Fri Mar 11 19:01:09 CET 2011
Thanks. This is a bug, the source code made an implicit assumption that there
would always be at least one smooth, when creating the gam object after
fitting. Fixed for the next release (1.7-5). For now, you could use glmmPQL
from the MASS library to get an equivalent fit when there are no smooth
terms.
Simon
On Thursday 10 March 2011 15:07, wang cheng wrote:
> Hello:I run a gamm with following call
> :mode<-gamm(A~B,random=list(ID=~1),family=gaussian,na.action=na.omit,data=r
>s)an error happened:ERROR names(object$sp) <- names(G$sp) : attempt to set
> an attribute on NULLwith mgcv version 1.7-3What so? How can I correct the
> Error? Thanks very much for any help.
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
--
> Simon Wood, Mathematical Sciences, University of Bath, Bath, BA2 7AY UK
> +44 1225 386603 www.maths.bath.ac.uk/~sw283
More information about the R-help
mailing list