Re: [R] Updating lmer - object is not subsettable?

From: Douglas Bates <bates_at_stat.wisc.edu>
Date: Wed 13 Sep 2006 - 03:16:31 GMT

Can you show a traceback on this example? It may be related to a problem that I just fixed in the development version of the lme4 package.

Alternatively if you can make the data available I can generate a traceback myself.

On 9/12/06, Jarrett Byrnes <jebyrnes@ucdavis.edu> wrote:
> I'm attempting to write a general function to implement Faraway's
> bootstrapping algorithm for mixed models with lmer, but have run into
> a curious problem. I'm comparing two models
>
> model.1<-lmer(Response ~ Treatment + (1|Trial), data=exp.data,
> method="ML")
> model.2<-lmer(Response ~ 1 + (1|Trial), data=exp.data, method="ML")
>
>
> When I attempt to update model.2 with simulated data, however, I get
> the following error:
>
> sim.data<-unlist(simulate(model.1))
> sim.model.2<-update(model.2, sim.data~.)
>
> Error in x[[3]] : object is not subsettable
>
>
> Now, the following
> sim.model.1<-update(model.1, sim.data~.)
>
> appears to work just fine. Does anyone know why update won't work,
> and is there something I can do about this?
>
> -Jarrett
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>



R-help@stat.math.ethz.ch 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 Wed Sep 13 13:21:46 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 13 Sep 2006 - 04:30:07 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.