Skip to content
Prev 10779 / 20628 Next

Passing lme4 optimizer arguments to pbmodcomp and afex/mixed

Hello again,

I can confirm Tobias' observation that simple changes in the values of the predictors lead to the pwrssUpdate error message. I can demonstrate it with data from a recent but unrelated Cross-Validated question (that is desperately awaiting answers): http://stats.stackexchange.com/q/70783/442

require(lme4)
options(contrasts=c('contr.sum', 'contr.poly'))

dat <- read.table("http://pastebin.com/raw.php?i=vRy66Bif")
dat$V1 <- factor(dat$V1)

m1 <- glmer(true ~ distance*consequent*direction*dist + (consequent*direction*dist|V1), dat, family = binomial)
# runs but takes quite some time, so better stop it.

# transform centered consequent variable by squaring it (retaining the sign):
dat$consequent2 <- with(dat, ifelse(consequent < 0, -consequent^2, consequent^2))

m2 <- glmer(true ~ distance*consequent2*direction*dist + (consequent2*direction*dist|V1), dat, family = binomial)
# produces the error:
# Error: pwrssUpdate did not converge in 30 iterations


I hope this helps.

Best,
Henrik

PS: My session Info:

R version 3.0.1 (2013-05-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)

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

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

other attached packages:
[1] lme4_1.1-0      Matrix_1.0-12   lattice_0.20-15

loaded via a namespace (and not attached):
[1] grid_3.0.1    MASS_7.3-26   minqa_1.2.1   nlme_3.1-109  Rcpp_0.10.3
[6] splines_3.0.1



Am 25.09.2013 18:31, schrieb Tobias Heed: