Questions tagged [glmm]
75 questions
0
votes
1 answer
GLMM in R versus SPSS (convergence and singularity problems vanish)
Unfortunately, I had convergence (and singularity) issues when calculating my GLMM analysis models in R. When I tried it in SPSS, I got no such warning message and the results are only slightly different. Does it mean I can interpret the results…

rbeginner
- 21
- 4
0
votes
0 answers
Error in as.data.frame.default, class coercion 'structure("RasterStack", package = "raster")' in data.frame not possible
`Hello everybody
I get an error when I try to use the predict function. I'm doing a habitat suitability study.
this function requires the model (in this case a glmm) in which I have used trimmed variables, and I want to make the prediction on the…

spage
- 1
0
votes
0 answers
Non parametric bootstrap for tweedie distribution
Does anyone know of a non-parametric bootstrapping method that will work for a tweedie distribution GLMM using glmmTMB? The biggest lead I have right now is glmmboot but I am not finding any pubs or strong support (i.e., not a lot of evidence of…

Jensolguin
- 1
- 1
0
votes
0 answers
How do I fix "object loglik not found" error when using glmmLasso for model selection?
I am using glmmlasso for model selection. I get to a point where I try to implement my tuned lambda only to get the error:
Error in logLik.glmmLasso(y = y, yhelp = yhelp, mu = mu, family = family, :
object 'loglik' not found
I have searched but…

Brynn
- 1
- 1
0
votes
0 answers
"p=NaN" at symple slopes analysis of GLMM
I analyzed a simple slope of the GLMM cross-level interaction terms for which significant associations were found. I used "reghelper" package in R.
if (require(lme4, quietly=TRUE)) {
model <- glmer(Y ~ X * W + (1|Com_ID), data=dat,…
0
votes
1 answer
Error in if (REML) p else 0L : the condition has length > 1
I am trying to calculate the null model as follows:
null <- lmer(Binomialvariable ~ 1 + (1|ID), data=data, REML=F)
and I get the following error message:
Error in if (REML) p else 0L : the condition has length > 1
I was wondering if someone…
0
votes
0 answers
Trouble with GLMM in R: Error in gamma(link = "identity") : supplied argument name 'link' does not match 'x'
I am trying to fit a GLMM to my dataset and am having trouble finding a good family and link. My response variable is continuous, positive, and skewed to the left (see image).
I thought that gamma would be the best family. However, I've tried…
0
votes
1 answer
Plotting regression lines - full average GLMM
I fitted two GLMM models (full models below), one with a Poisson distribution (number of eggs) and the other with binomial distribution (number of surviving offspring / number of eggs), and then I retrieved the full average coefficients (summary…

DFer
- 3
- 3
0
votes
0 answers
Calculate proportion of random effect variance from zero-inflation component of glmmTMB model
I fitted a zero-inflation Model in glmmTMB onto my data. It is defined in the following way:
MT.total.glmm.zi <- glmmTMB(MT_total ~ Factor1 * Factor2 + Factor3
+ (1|RANEF1)
+ (1|RANEF2)
+ (1|RANEF3)
…

Pienatt
- 51
- 5
0
votes
0 answers
Why is it effectPlotData function doesn't work with models fitted using lmer function?
I ran a linear mixed effects model using t lmer function. Now, I want to ran effect plots using the function effectPlotData from the GLMMadaptive package. The function requires three inputs object (model), newdata (the data frame that contains the…

Tafadzwa
- 11
- 2
0
votes
1 answer
How can I pass cluster as string in glmmML (R)
How can I pass cluster columns as string variable in glmmML ?
cluster_column_as_string = 'id'
glmmML(y ~ x, data = data, cluster = cluster_column_as_string)
glmmML(y ~ x, data = data, cluster = as.symbol(cluster_column_as_string))
glmmML(y ~ x, data…

mizu
- 1
0
votes
1 answer
How to run a GLMM with Crossed Independent Random Effects
I need to run a Mixed Effects Model but I am stuck because my data is more complicated than what I am used to running. Here is an example of my data frame. This is fake data, but it gets the point across just fine.
My fake data:
df <-…

Matthew Babb
- 15
- 3
0
votes
1 answer
Linear mixed-effect models (nlme/ lme4) interpretation of marginal and conditional R^2 values
I'm investigating bacterial diversity and want wo know if the diversity is dependent on the pH. My data are structured as followed:
I have a dataset of 17 different studies
each study has values for diversity and for pH (the number of values differ…

Luckylou
- 1
- 2
0
votes
2 answers
GLMM Random Intercept estimators in lme4
How do you get the random intercept effects estimators from a lme4 result object?
set.seed(247)
# Create Data
n=1000
x = runif(n)
id = rep(NA,n)
for (i in 1:10) {
id_s = (i-1)*100+1
id_e = i*100
id[id_s:id_e] = i
}
effects = rnorm(10)
lp =…

Maverick Meerkat
- 5,737
- 3
- 47
- 66