Questions tagged [glmm]
Generalized Linear Mixed (effects) Models are typically used for modeling non-independent non-normal data (eg, longitudinal binary data).
1,119 questions
0 votes
0 answers
27 views
Comparing to zero in emmeans pairwise comparisons?
I'm analyzing data on daily foraging dynamics of animals in different treatments feeding on a diet consisting of two different qualities (high and low) using R. The problem arises when there are days ...
3 votes
1 answer
75 views
Confounding due to minimal covariate overlap in glmm
I'm analyzing an ecological dataset of nutrient concentrations (continuous) across seven stations (each station is nested within one of three sites). We also have ~60 samples from each station where ...
0 votes
0 answers
35 views
ANCOVA or GLMM for logistic regression with fixed and random effects
I'm running an experiment where subjects need to determine if a test-image is identical or different from their (memorized) target-image. The images are divided between categories (e.g. ...
0 votes
0 answers
77 views
How to solve a binary logistic mixed effects model when there is unbalanced data and different variance structure with repeated measures?
Problem Description: I want to fit a generalized linear mixed-effects model with a binary response (i.e., a Binary logistic mixed-effects model) where there are nested random effects, and each nested ...
0 votes
0 answers
37 views
Residual issues in binomial GLMM when including random effect
I'm working on a dataset of ~2900 fish, where the visually estimated sex was compared to the true sex. In about 10% of the cases (≈260 fish), the estimation was wrong (deviation = TRUE). I'd like to ...
0 votes
0 answers
57 views
Parametric bootstrap for multiple comparisons for glmm
When doing post-hoc treatment comparisons with the results from a glmm it is typical in my industry to use PROC GLIMMIX, method=rspl, ddfm = kr, and whatever control method is appropriate (ex. Tukey, ...
3 votes
1 answer
95 views
Standardizing effectsizes in a two-level logistic mixed model with highly unbalanced clusters: advisable? How to compare effect sizes?
I’m fitting a two-level logistic mixed model with a random intercept and only level-1 predictors. The data are highly unbalanced across clusters: 266 observations in 25 clusters with sizes like: ...
2 votes
0 answers
93 views
How to use LASSO shrinkage methods using glmnet for a GLMM model
I am fairly new to more complex statistics and I'm trying to get my head round appropriate variable selection methods including Lasso shrinkage, so would really appreciate any help and guidance ...
0 votes
0 answers
76 views
How to specify the random-intercepts for states and districts nested within the states in glmmTMB?
This question is related to the selection of appropriate model strategy. My dataset has 2500 rows of district-level data of disease counts (number of cases). The response variable is number of cases. ...
0 votes
0 answers
36 views
Binary repeated measures outcome with rare events?
I have a binary repeated measures outcome with rare events. In particular, when comparing the outcome between different groups, sometimes the Odds ratios can blow up to infinity due to sparsity/rare ...
2 votes
0 answers
69 views
Why are the point estimates of estimated marginal means from a Bayesian binomial GLMM so different in the presence of residual covariance?
As the question title says, I am confused why the estimated marginal means (obtained using emmeans()) for a Bayesian binomial generalized linear mixed model are so ...
0 votes
0 answers
69 views
Understanding differences in predictions with and without bias correction
My understanding of this topic has been cobbled together from various package vignettes (e.g., here and here) and other stackexchange posts (e.g., here). The information therein has been very helpful, ...
5 votes
2 answers
297 views
Can I use random effects for variables other than time?
I have a dataset that contains information on purchases (in euros), salary, and other variables that reflect the purchasing preferences of each subject. The measures are repeated over time for each ...
1 vote
0 answers
88 views
Why are the confidence intervals for predictions from a binomial model different from the confidence intervals for predictions from a hurdle model?
I used the R package glmmTMB to analyze a dataset using a binomial model and a hurdle model, then used the package ggeffects to generate predictions from both models. In glmmTMB, binomial models ...
2 votes
0 answers
136 views
Prediction for glmm (correcting for bias due to jensens inequality?)
I am trying to decide on the best method for producing model predictions (for graphing) from my generalized linear mixed effects model. I am interested in getting marginal predictions (i.e., what the ...