Questions tagged [glmm]
75 questions
0
votes
0 answers
Are there various formulas generating generalized linear mixed-effects models(GLMM)in lme4 package?
I am reproducing a GLMM with the data given in a published paper. The author mentioned that lme4 package was used in the analysis. I am using glmer() and in summary(),I am able to get the correct AIC. However, the fixed effects(e.g. estimate, std.…
0
votes
0 answers
Fitting multivariate mixed model (mvglmer) with JMBayes - Error in x$terms : object of type 'symbol' is not subsettable
I am trying to do a mvglmer fit with jmbayes with the following snippet data of the first patient:
****id1 predx**
1011025 Prednisolone
**wks ecgrate_binary ecgpri_binary**
0 1 0 …

Modiehi
- 1
- 2
0
votes
0 answers
Inverse and log function get opposite results in GLMM - which one to pick?
I am trying to fit GLMM in R where we predict reaction times (RTs, dependent variable) by a continuous, uniformly distributed variable called scores (independent variable); the random effect is the participant (glmer(rt ~ scores + (1|participant)).…

user9361
- 1
0
votes
0 answers
R Roc curve small sample with random effect with small groups
I have a dataset of 550 samples of Nests for which I know how many nestlings died or survived. I performed a binary proportion model:
cbind(died,survived)~ variable 1+variable2+(1|Colony/Nest_ID),family=binomial)
I would like to estimate the fit of…
0
votes
0 answers
Model convergence problem; non-positive-definite Hessian matrix. See vignette('troubleshooting') - problem trying to calculate R2
I'm trying to fit a glmm using the package glmmTMB in R. The model has a Poisson distribution:
mod_po <- glmmTMB(richness ~ x_dif + x_dif2 + (1|papers/watersheds), data = df_glm, family = poisson).
The variables x_dif and x_dif2 are stream sizes,…

nati_sb
- 1
- 1
0
votes
0 answers
How do I get unscaled version of parameter for my interaction model on GLMM using plot_model?
I am looking at camera trap data to study drivers of illegal human activities in the central Vietnam. I made a GLMM model to see the impact of species number and remotessess on the number of human records at each camera trap stations. I used the…

Shyam Sharma
- 1
- 1
0
votes
1 answer
How to calculate predicted values using glmmTMB?
I'm trying to check if bees differing in size can affect pollen deposition over 20 sequential visits. As a response variable, I have the number of pollen grains; as predictors, I have the sequence of 20 flowers. Because the amount of pollen received…

Amanda Vieira
- 3
- 1
0
votes
0 answers
How(what) to plot (for) results of negative binomial glmm with categorical variables against counts?
I have count data for an ungulate species from two sites (here made up for the question). I want to know how to showcase results of categorical variable in this analysis. I first thought the graph I am getting have incidence rate ratios, but then…

Zaara Kidwai
- 13
- 3
0
votes
0 answers
Best way to run a GLMM with max, min, and average of the same variables
I have a dataset consisting of "total activity" (a count variable, number of observations per day) and many predictor variables (temperature, humidity, etc.). I have the daily maximum, minimum, and average for each variable. I want to use a GLM or…

hutch
- 1
0
votes
0 answers
Fixed-effects generalized linear model for multinomial data
I would like to find an equivalent fixed-effects model in R for the ordinal package model for analyzing multinomial data with threshold terms and a "probit" link function, such as:
clmm(y ~ 1 + Bloco + (1| Trat), data=dados3a, link="probit")
The…

Mateus Piza
- 31
- 3
0
votes
0 answers
Power analysis: Model comparison with LRT in R
Any suggestions on how to best implement a power analysis in R when having a binomial generalized linear mixed model (glmm) with 2 categorical predictors as fixed effects (2 levels and 8 factor levels) and testing hypotheses through model comparison…

Sahila
- 35
- 5
0
votes
0 answers
Singular Fit for Random Effect in Binomial GLMM
At my wits end running models and would greatly appreciate help. I am currently running GLMM's to understand the relationships between a set of predictor variables (continuous data) and my binomial outcome variable (0,1 - 'self_reported_conflict).…

candidcorvid
- 1
- 1
0
votes
1 answer
Confidence intervals for predictions from logistic regression GLMER
I am trying to make a prediction model and I would like to have the confidence intervals around these predictions
This is a mixed generalized logistic regression model
I tried to take the code here : Confidence intervals for predictions from…
0
votes
0 answers
Problem with dredge function in MuMIn "result is empty" and "missing values in object" despite dataset seeming to be complete
I get the following error message when I run the dredge function :
Fixed term is "(Intercept)"
Error in dredge(global.model = ChangeModel, evaluate = TRUE, rank = "AICc") :
result is empty
In addition: There were 50 or more warnings (use…

PowellHall
- 3
- 2
0
votes
1 answer
"Error in KhatriRao(sm, t(mm)) : (p <- ncol(X)) == ncol(Y) is not TRUE" in glmer even after previous solutions answers tried
I know a question with this exact same question has been asked previously, but previous answers have come up with two possible answers, neither of which I think is applicable in this case. In the first one, there were NA values, and I have already…

PowellHall
- 3
- 2