Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initCtrl doesn't work as advertised in glmer.nb? #705

Open
bbolker opened this issue Oct 25, 2022 · 0 comments
Open

initCtrl doesn't work as advertised in glmer.nb? #705

bbolker opened this issue Oct 25, 2022 · 0 comments

Comments

@bbolker
Copy link
Member

bbolker commented Oct 25, 2022

https://stackoverflow.com/questions/66293749/specify-theta-ml-parameters-within-glmer-nb/70601424#70601424 explains why you usually don't want to increase the iteration limit, but:

set.seed(101)
dd <- expand.grid(f1 = factor(1:3),
                       f2 = LETTERS[1:2], g=1:9, rep=1:15,
               KEEP.OUT.ATTRS=FALSE)
mu <- 5*(-4 + with(dd, as.integer(f1) + 4*as.numeric(f2)))
dd$y <- rnbinom(nrow(dd), mu = mu, size = 0.5)
m.nb <- glmer.nb(y ~ f1*f2 + (1|g), data=dd, verbose=TRUE, initCtrl = list(limit = 1000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant