Questions tagged [glmm]
Generalized Linear Mixed (effects) Models are typically used for modeling non-independent non-normal data (eg, longitudinal binary data).
1,120 questions
7
votes
3
answers
542
views
Extreme outlier in real data
I'm looking at the amount of carbon in seven forest pools. For dead trees left on the landscape across many locations and over several harvest retention (logging) treatments, there is an extreme value ...
0
votes
0
answers
32
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
83
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
1
answer
325
views
GLMM failure to converge warning
I built a generalized linear mixed model using the code:
...
4
votes
1
answer
819
views
What is the best way to deal with over-dispersion in a poisson GLMM?
I am currently in the process of trying to complete a poisson GLMM analysis with two fixed (with an interaction) and two random effects using the glmer() function ...
3
votes
1
answer
2k
views
Priors and nested random effects in MCMCglmm?
I am trying to construct a zero inflation Poisson GLMM using MCMCglmm(). I am new to Bayesian Statistics and this function and I am struggling to understand a couple of things.
For my data I am ...
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, ...
2
votes
1
answer
366
views
GLMM to test change between two periods
I have made an analysis to test whether the weight of a mice population has changed between two periods. Data have been collected in the period 1978-81 and 2005-07. Many mice were captured through the ...
0
votes
1
answer
373
views
Overdispersion tests for weighted binomial GLM(M)s
I'm running GLM(M)s on proportional data ([0,...,1] ) using a binomial family and weighted to number of trials.
ProportionFlowertoPod_Site.b = glmmTMB(PropFlowtoPod ~ Site_ID,
family = binomial,
...
1
vote
1
answer
326
views
GLMM for SNA and non-independency data
I contact you because my case is particular and I don’t know much about GLMM.
I have data of social networks (network metrics) of a nonhuman primate species. These data are by nature non independent (...
2
votes
1
answer
510
views
Generalised Logistic Regression with mixed effects - Binomial model creation / selection
I have a dataset with 72 individuals from 5 separate groups, with repeated measures - each individual was sampled 4 times. All data is binomial, and in most cases there are more 0s than 1s.
I have a ...
5
votes
1
answer
305
views
Determining best mixed effects model for the prediction of ordinal data, from a continuous non-normally distributed variable
How do I choose a good model for this analysis? I'm going to describe the scenario below, and outline several options I have brainstormed.
First, the scenario:
I have data from 50 technicians that ...
2
votes
1
answer
229
views
Model failing to converge with LMER
I want to predict the relationship between the number of groups a person belongs to and their overall well-being (totalwell). However, I would like to consider the possibility that a person could ...
1
vote
0
answers
68
views
Fit generalized linear mixed model (with lme4 or other) to cumulative data of a continuous variable
I have measurements of resin production of pine, which are taking tapping the tree, that is, making a physical wound and collecting the resin in a pot. When the pot is full we replace it with an empty ...
6
votes
1
answer
149
views
Running an analysis of pre-post cluster RCT using a GLMM. Why does LMER include cases with only post data, but not cases with only baseline data?
I am running an analysis of a pre-post cluster RCT in a GLMM framework. Why does LMER include cases with only post data, but not the cases with only baseline data? Is there a way I can make it use the ...
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
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 ...
2
votes
0
answers
94
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. ...
1
vote
1
answer
524
views
Comparing fixed effects of a binomial GLMM
I got stuck interpreting the result of a generalised linear mixed model (GLMM). Feedbacks on how to compare two coefficients within a categorical fixed effect would be really helpful!
To be specific, ...
0
votes
0
answers
37
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 ...
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, ...
0
votes
1
answer
896
views
Repeating AIC values with proc Glimmix in SAS
I am comparing several models using PROC GLIMMIX, and many of my models are coming out with the exact same AIC value, even when new variables are added. For example, the code below yields the exact ...
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 ...
2
votes
1
answer
216
views
Is there a way to use weights in glmmLasso in R?
I would like to use weights in a model that I'm fitting with the glmmLasso package, but it looks like there isn't an option for it. I've previously fit models with ...
1
vote
1
answer
548
views
Effect size for fixed effect variable with >2 levels binomial glmm (lme4)
I have a mixed effects model with a binomial outcome which I constructed using glmer from the lme4 package in R. In the output ...
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 ...
1
vote
1
answer
178
views
How can you fix a GLMM with large z-statistics?
I am using glmmTMB and keep getting this diagnosis on my model when I check it:
...
2
votes
0
answers
138
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 ...
2
votes
1
answer
79
views
How to simplify a singular GLMM that seems to need the random effect thats causing the problem?
Study design: each subject chose between two feeders with different sweetness, the difference between the sweetness was the 'condition'. There was four levels of condition, and ten subjects per level. ...
2
votes
1
answer
97
views
Deciding between the appropriate distribution for GLMMs -- Gamma vs. Beta
I am working on some modeling for relative abundance data. A previous iteration of this study was modeling species density and used GLMMs fit to a Gamma distribution with a log link. There's one main ...
8
votes
1
answer
225
views
Linear mixed model or Generalized linear mixed model
I have a dataset with repeated measures, different individuals each have six appointments in total. The outcome variable is continuous. I want to know if I should use a GLMM or a LMM to see what the ...
6
votes
1
answer
239
views
I need help with mixed effect model
I'm analysing the effect of various factors on the volumetric measurements of the human brain. Fixed effects are: Gender, hemisphere, age and region. Persons ID is a random effect. At start I've tried ...
6
votes
1
answer
212
views
How should I interpret the dispersion parameter in my glmmTMB lognormal GLMM?
I have run a lognormal GLMM using the glmmTMB package, and I could use some help understanding the dispersion parameter. It is very large (2210), but there are no model convergence issues and no ...
0
votes
1
answer
50
views
Theoretical question around Implicit Attitude Test data between timepoints: single vs. multiple datapoints per person?
I have a question that relates to the use of IAT scores across timepoints. As part of a large health-based intervention my colleagues and I have obtained IAT scores at different timepoints, from which ...
0
votes
0
answers
33
views
Is this a reasonable usecase of a GLMM for time series data?
I'm analysing some occupancy data over a long time period, where there is a year that an invasive species was introduced, and I expect it to affect the trend for my organisms' presence. I would like ...
1
vote
1
answer
259
views
GLMM on proportion data based on counts
I am running a GLMM on my small dataset ($n=31$) in a repeated measures study that has $2$ groups and $5$ conditions (conditions are fixed for everyone). I am interested in main effects of group and ...
1
vote
1
answer
108
views
Should I transform my predictors in logistic regression?
I'm currently working on a logistic regression, but I'm unsure whether I should log-transform my predictors. Here is the formula for my model:
...
0
votes
1
answer
76
views
How to model feeder choice in bees while ignoring unbalanced feeding events per bout?
I'm analyzing an experiment I ran with bumblebees, and really struggling with choosing the appropriate model.
In the experiment, each bee made feeder choices across two temperature conditions:
...
2
votes
0
answers
168
views
GLMM interpretation and DHARMa quantile deviations detected
I could really use some help interpreting my GLMM and its diagnostics. This is my first time posting so let me know if you would like further clarification on anything!
I'm trying to build a model for ...
2
votes
1
answer
1k
views
MASS::glmmPQL diagnostic
I am fitting models with MASS::glmmPQL of the form
...
3
votes
2
answers
667
views
How to apply splines to logistic GLMM if predictors are scaled?
Model Details
After some thought about previous questions I've posed here, I've decided to add splines to non-linear terms in my logistic GLMM. However, there are a number of questions I have about ...
4
votes
1
answer
115
views
Discrepancy in point estimate and standard error of random effect variance component between Bayesian and frequentist GLMMs
I am investigating the properties of a GLMM with Beta response distribution and a hurdle component to model the probability of observing a zero. I have fit a frequentist version of the model using the ...
3
votes
1
answer
70
views
Can you add interactive effects between Principal Components (PCs) and other predictors in linear models?
I am building a glmm where I have 3 PCs (principal components) as predictors in the model. These PCs are based on soil variables (pH, CEC, nutrients) so I have reason to believe they may interact with ...
0
votes
0
answers
68
views
Type of regression distribution for proportional time data
I am trying to understand differences in the time spent on two sides of a Y-maze between treatments. The response variable is the proportion of time spent on one side of the maze [0,1] (see below). I ...
2
votes
1
answer
103
views
Significant underdispersion in DHARMa but not performance
I am using DHARMa to check dispersion in my glmm Poisson model and have uncovered significant UNDER-dispersion. Is this something I need to address ? I know significant overdispersion can cause issues ...
4
votes
1
answer
321
views
Visualizing glmm predictions: confidence intervals from ggpredict
I'd like to create a graph for my paper that visualizes my binomial glmm, ideally with confidence intervals. However, my CIs using ggpredict came out a bit funky.
Here is some example code using the ...