[R-sig-ME] Bug in lme4?

ONKELINX, Thierry Thierry.ONKELINX at inbo.be
Fri Apr 13 16:25:27 CEST 2012


Please ignore my previous email. Everything works fine with R 2.15.0 patched

> library(lme4)
Loading required package: Matrix
Loading required package: lattice

Attaching package: 'lme4'

The following object(s) are masked from 'package:stats':

    AIC, BIC

> set.seed(123)
> dummy <- expand.grid(X = 1:20, A = factor(1:40))
> dummy$Y <- with(dummy, 0.05 * X + rnorm(length(levels(A)))[A]) + rnorm(nrow(dummy))
> model <- lmer(Y ~ X + (1|A), data = dummy)
> model
Linear mixed model fit by REML
Formula: Y ~ X + (1 | A)
   Data: dummy
  AIC  BIC logLik deviance REMLdev
 2388 2407  -1190     2370    2380
Random effects:
 Groups   Name        Variance Std.Dev.
 A        (Intercept) 0.82560  0.90863
 Residual             0.98304  0.99148
Number of obs: 800, groups: A, 40

Fixed effects:
            Estimate Std. Error t value
(Intercept) 0.102605   0.161058   0.637
X           0.044820   0.006079   7.373

Correlation of Fixed Effects:
  (Intr)
X -0.396
> sessionInfo()
R version 2.15.0 Patched (2012-04-09 r58947)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Dutch_Belgium.1252  LC_CTYPE=Dutch_Belgium.1252
[3] LC_MONETARY=Dutch_Belgium.1252 LC_NUMERIC=C
[5] LC_TIME=Dutch_Belgium.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] lme4_0.999375-42 Matrix_1.0-6     lattice_0.20-6

loaded via a namespace (and not attached):
[1] grid_2.15.0   nlme_3.1-103  stats4_2.15.0

ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium
+ 32 2 525 02 51
+ 32 54 43 61 85
Thierry.Onkelinx op inbo.be
www.inbo.be

To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of.
~ Sir Ronald Aylmer Fisher

The plural of anecdote is not data.
~ Roger Brinner

The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey


-----Oorspronkelijk bericht-----
Van: r-sig-mixed-models-bounces op r-project.org [mailto:r-sig-mixed-models-bounces op r-project.org] Namens ONKELINX, Thierry
Verzonden: vrijdag 13 april 2012 15:38
Aan: R-SIG-Mixed-Models op r-project.org
Onderwerp: [R-sig-ME] Bug in lme4?

Dear all,

After upgrading to R 2.15.0 and updating all the packages I get this error. Is this a bug?

Best regards,

Thierry

> library(lme4)
Loading required package: Matrix
Loading required package: lattice

Attaching package: 'lme4'

The following object(s) are masked from 'package:stats':

    AIC, BIC

> set.seed(123)
> dummy <- expand.grid(X = 1:20, A = factor(1:40)) dummy$Y <-
> with(dummy, 0.05 * X + rnorm(length(levels(A)))[A]) +
> rnorm(nrow(dummy)) model <- lmer(Y ~ X + (1|A), data = dummy) model
Error in diag(val) :
  7 arguments passed to .Internal(identical) which requires 6
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Dutch_Belgium.1252  LC_CTYPE=Dutch_Belgium.1252    LC_MONETARY=Dutch_Belgium.1252
[4] LC_NUMERIC=C                   LC_TIME=Dutch_Belgium.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] lme4_0.999375-42 Matrix_1.0-7     lattice_0.20-6

loaded via a namespace (and not attached):
[1] grid_2.15.0   nlme_3.1-103  stats4_2.15.0 tools_2.15.0


ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekstraat 25
1070 Anderlecht
Belgium
+ 32 2 525 02 51
+ 32 54 43 61 85
Thierry.Onkelinx op inbo.be
www.inbo.be

To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of.
~ Sir Ronald Aylmer Fisher

The plural of anecdote is not data.
~ Roger Brinner

The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey


* * * * * * * * * * * * * D I S C L A I M E R * * * * * * * * * * * * * Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is door een geldig ondertekend document.
The views expressed in this message and any annex are purely those of the writer and may not be regarded as stating an official position of INBO, as long as the message is not confirmed by a duly signed document.

_______________________________________________
R-sig-mixed-models op r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
* * * * * * * * * * * * * D I S C L A I M E R * * * * * * * * * * * * *
Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is door een geldig ondertekend document.
The views expressed in this message and any annex are purely those of the writer and may not be regarded as stating an official position of INBO, as long as the message is not confirmed by a duly signed document.



More information about the R-sig-mixed-models mailing list