Re: [R] ERROR: gamm function (mgcv package). attempt to set an attribute on NULL

From: Simon Wood <s.wood_at_bath.ac.uk>
Date: Fri, 11 Mar 2011 18:01:09 +0000

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
______________________________________________ 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 Fri 11 Mar 2011 - 17:24:54 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 Fri 11 Mar 2011 - 18:30:20 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