[R] VarCorr procedure from lme4

Doran, Harold HDoran at air.org
Tue May 1 20:49:40 CEST 2012


Can you give sessionInfo()? It is working fine for me. 

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
> Behalf Of David Stevens
> Sent: Tuesday, May 01, 2012 2:38 PM
> To: r-help at r-project.org
> Subject: [R] VarCorr procedure from lme4
> 
> Folks
> 
> In trying to use lmer for a hierarchical model, I encountered the
> following message:
> 
> 
> Error in UseMethod("VarCorr") :
>    no applicable method for 'VarCorr' applied to an object of class "mer"
> 
> foo.mer <- lmer(y ~ TP + (TP|M),data=joe.q)
> 
>  > head(joe.q[,1:5])
>    TP   M AB Trt        y
> 1  1 Jan  A  NN 19.20002
> 2  1 Jan  A  NN 19.06378
> 3  1 Jan  A  NN 21.36292
> 4  1 Jan  A  NN 16.85191
> 5  1 Jan  A   N 17.89363
> 6  1 Jan  A   N 15.53853
> I tried this through the display(foo.mer) from arm and by VarCorr(foo.mer)
> My understanding is the VarCorr was essentially designed to work with
> 'mer' objects. Am I wrong about this?  The lmer procedure seemed to work
> fine
> 
> --
> David K Stevens, P.E., Ph.D., Professor
> Civil and Environmental Engineering
> Utah Water Research Laboratory
> 8200 Old Main Hill
> Logan, UT  84322-8200
> 435 797 3229 - voice
> 435 797 1363 - fax
> david.stevens at usu.edu
> 
> 
> 
> 
> 	[[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.



More information about the R-help mailing list