All Questions
7 questions
2
votes
0
answers
33
views
How to fit a GLMM with multiple levels of nesting
I have some data I am struggling to process at the moment. I have landed on using generalized linear mixed models (GLMMs), but I am having a very hard time wrapping my head around it.
I have a large ...
3
votes
1
answer
75
views
When should grouping variables interact in a mixed-effects model?
I was reading this post which is relevant to a research project I'm working on now. I think that I understand the difference between crossed and nested random effects, e.g. as described here.
The ...
0
votes
1
answer
254
views
Can I use Gls() or glmer() to predict binary outcomes with restricted cubic splines predictors?
I'm new to rms, as I read the rms book and notes, I saw that the Gls() function could be used to make a longitudinal growth ...
2
votes
0
answers
350
views
GLMM model formulation with a partial "subcondition"
I am modeling reaction times in a GLMM using the lme4 package. My data have the following structure:
Subject ID
Reaction times (RT)
Distractor type (Type): (3 levels): moving - static - no distractor
...
3
votes
1
answer
136
views
What are marginal and conditional errors in a GLMM?
I'm modifying my ecology paper according to what the reviewers suggested but I have an issue with one statistical-related question.
I ran a GLMM in lme4 on R to model the presence/absence of a certain ...
3
votes
1
answer
2k
views
GLMM optimiser test - optimx.L-BFGS-B doesn't converge, but the rest do
I am running GLMM using lme4 in R for the first time. I have a complex model (with three main effects and four interactions), as well as a random intercept of ...
4
votes
1
answer
5k
views
Level-2 predictions with lme4/glmer model
Let's say I've fitted a 2 level model with glmer like this:
...