From spluque at gmail.com  Thu Jun 28 20:15:28 2007
From: spluque at gmail.com (Sebastian P. Luque)
Date: Thu, 28 Jun 2007 13:15:28 -0500
Subject: [Rd] error message from lmer
References: <87abult2ey.fsf@patagonia.sebmags.homelinux.org>
	<Pine.LNX.4.64.0706280557300.23081@gannet.stats.ox.ac.uk>
Message-ID: <87ps3grlmn.fsf@patagonia.sebmags.homelinux.org>

On Thu, 28 Jun 2007 06:08:45 +0100 (BST),
Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:

> See the thread starting
> https://stat.ethz.ch/pipermail/r-devel/2007-June/046157.html
> https://stat.ethz.ch/pipermail/r-devel/2007-June/046160.html

Thank you, I think I've indeed encountered the same issue (with 'R
--vanilla').  If I load package diveMove (which depends on stats4, in my
local development version) after lme4:

---<---------------cut here---------------start-------------->---
> library(lme4)         # load lme4 first; everything ok
Loading required package: Matrix
Loading required package: lattice
> (fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy))
Linear mixed-effects model fit by REML 
Formula: Reaction ~ Days + (Days | Subject) 
   Data: sleepstudy 
  AIC  BIC logLik MLdeviance REMLdeviance
 1754 1770 -871.8       1752         1744
Random effects:
 Groups   Name        Variance Std.Dev. Corr  
 Subject  (Intercept) 610.835  24.7151        
          Days         35.056   5.9208  0.067 
 Residual             655.066  25.5943        
number of obs: 180, groups: Subject, 18

Fixed effects:
            Estimate Std. Error t value
(Intercept)  251.405      6.820   36.86
Days          10.467      1.546    6.77

Correlation of Fixed Effects:
     (Intr)
Days -0.137
> library(diveMove)     # load this now; everything ok too
Loading required package: stats4
>      (fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy))
Linear mixed-effects model fit by REML 
Formula: Reaction ~ Days + (Days | Subject) 
   Data: sleepstudy 
  AIC  BIC logLik MLdeviance REMLdeviance
 1754 1770 -871.8       1752         1744
Random effects:
 Groups   Name        Variance Std.Dev. Corr  
 Subject  (Intercept) 610.835  24.7151        
          Days         35.056   5.9208  0.067 
 Residual             655.066  25.5943        
number of obs: 180, groups: Subject, 18

Fixed effects:
            Estimate Std. Error t value
(Intercept)  251.405      6.820   36.86
Days          10.467      1.546    6.77

Correlation of Fixed Effects:
     (Intr)
Days -0.137
---<---------------cut here---------------end---------------->---


Now if diveMove is loaded before lme4 (with 'R --vanilla' again):

---<---------------cut here---------------start-------------->---
> library(diveMove)    # load diveMove first
Loading required package: stats4
> library(lme4)        # load lme4 here; error in printMer()
Loading required package: Matrix
Loading required package: lattice
> (fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy))
Error in printMer(object) : no slot of name "status" for this object of class "table"
> find("summary")
[1] "package:Matrix" "package:stats4" "package:base"  
---<---------------cut here---------------end---------------->---


-- 
Seb



[Rd] error message from lmer
Sebastian P. Luque