[Lme4-commits] r1694 - pkg/lme4/tests
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Mar 28 14:32:56 CEST 2012
Author: mmaechler
Date: 2012-03-28 14:32:56 +0200 (Wed, 28 Mar 2012)
New Revision: 1694
Modified:
pkg/lme4/tests/lmer.R
Log:
add sleepstudy-1-9 example
Modified: pkg/lme4/tests/lmer.R
===================================================================
--- pkg/lme4/tests/lmer.R 2012-03-26 14:41:14 UTC (rev 1693)
+++ pkg/lme4/tests/lmer.R 2012-03-28 12:32:56 UTC (rev 1694)
@@ -17,6 +17,15 @@
## gave error inside model.frame()
stopifnot(all.equal(unname(fixef(fm)), -0.8345, tol=.01))
+sstudy9 <- subset(sleepstudy, Days == 1 | Days == 9)
+try({## This "did work" in lme4.0 and nlme -- FIXME ??
+ m1 <- lmer(Reaction ~ 1 + Days + (1 + Days | Subject), data = sstudy9)
+ ## -> Error in ptr() : Downdated VtV is not positive definite
+ ## FIXME?(2): More helpful error message
+ print(sm1 <- summary(m1))
+ fm1 <- fitted(m1)
+})
+
## check working of Matrix methods on vcov(.) etc ----------------------
fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)
V <- vcov(fm)
More information about the Lme4-commits
mailing list