Skip to content

Commit b1d8b57

Browse files
committed
new test
1 parent 318d3ca commit b1d8b57

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/sleep.R

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
library(lme4pureR)
2+
3+
## only *one* of these two ?
4+
library(nloptwrap)
5+
library(minqa)
6+
7+
## library(lme4)
8+
data(sleepstudy, package="lme4")
9+
lmod <- lme4::lFormula(Reaction ~ Days + (Days|Subject), sleepstudy)
10+
11+
devf <- pls(lmod,sleepstudy$Reaction)
12+
bobyqa(c(1, 0, 1), devf, lower=c(0,-Inf,0))[c("par","value")]
13+
mML <- lme4::lmer(Reaction ~ Days + (Days|Subject),
14+
sleepstudy, REML = FALSE)
15+
lme4::getME(mML, "theta")
16+
lme4::deviance(mML)

0 commit comments

Comments
 (0)