Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
2 answers
125 views

Mixed effects models with only categorical data?

This is my first time trying to run any type of mixed effects models. I have a dataset where I was instructed to use some form of mixed effect modeling (lme4 package) to see if functional traits of my ...
Katherine Chau's user avatar
7 votes
1 answer
263 views

General Linear Mixed Model: How do I fix 'Rescale variables? Model is nearly unidentifiable' error on glmer

I'm trying to fit a generalized linear mixed model (GLMM), but I'm getting a persistent error. I'm looking at the relationship between weather (continuous variables: rainfall, maxtemp, and mintemp) ...
Hazel's user avatar
  • 71
2 votes
1 answer
299 views

Confidence interval for GLMM

I am conducting a GLMM for my bachelors thesis and I am wondering, how I can calculate and whether it is common to report confidence intervals for the models' estimates. This is the model I fitted on ...
Johanne's user avatar
  • 31
1 vote
2 answers
288 views

Model selection for glmer in R

I am trying to make a model for the different amount of species caught in different traps in 3 different locations on 3 height levels, along with 3 transects per location (resulting in 9 traps per ...
Fréderick Lescouhier's user avatar
7 votes
2 answers
154 views

How can I get a best model? An exploratory LMM

I'd like to inquire about the linear mixed model and its application to my dataset. The dataset comprises a dependent variable (DV) denoted as V, alongside three ...
TKw's user avatar
  • 71
3 votes
1 answer
72 views

What to do when the residuals of a general LMM are non normal and a generlized LMM will not build, when is it just too non-normal?

I've been having no luck building a general LMM. The residuals are not normally distributed, they follow somewhat of a leptokurtic distribution and homoskedacity is also present. Using log ...
user3256536's user avatar
3 votes
1 answer
64 views

Model diagnosis in GLMM model of binary outcome variable

I am trying to do a research article on morbidity, which is categorical, i.e., yes or no. I also consider fixed and random effects, given that all of the fixed effect covariates are categorical. Here ...
Sofonias Derso's user avatar
1 vote
1 answer
91 views

How to specify a linear mixed model (LMM) for a repeated measures design with two categorical predictors and one continuous?

I would appreciate some help figuring whether a linear mixed model (LMM) is a good choice for my data. My experiment is a 3 (neurostimulation target) X 2 (task block) repeated measures design that ...
arhopki's user avatar
  • 13
2 votes
2 answers
442 views

Is it bad to have large random effect variance when fixed effect estimates are small?

I'm running a generalized linear mixed models (GLMM) and am comparing the Laplace approximation to the Gauss-Hermite Quadrature. I have three predictor variables (fixed effects) and each is a number ...
burphound's user avatar
2 votes
0 answers
59 views

Faster version of lme4 for logistic regression 3-level multilevel model in R with 2 million data points

I'm running a 3-level multilevel model in R with binary outcomes and survival analysis with over 2 million data points. The lme4 package takes 12 hours to run one ...
user19890826's user avatar
1 vote
1 answer
4k views

Reporting results from a GLMER

I have conducted a generalized linear mixed model (GLMM). For the output, see below. Normally (when reporting results from an ANOVA), I write something like this: $F(1, 116) = 6.09$, $p = .015$, $η2 = ...
Sebastian Böckenhauer's user avatar
0 votes
0 answers
38 views

Combining two fixed factors in one factor

I have a question about a mixed model I'm running. The formula is the following: DV ~ Combined * Sex * Arousal + (1 + Combined | Subject) + (1 | Item) My question ...
Francesca's user avatar
2 votes
1 answer
160 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 ...
Tessa's user avatar
  • 21
2 votes
1 answer
3k views

How do I use the glmer function properly with my data in R

I have a set of around 23k rows of data. It is a set of animal movement lengths (dist), going from 0 to several thousand, with the majority being around 50 to 100. The data doesn't have a normal ...
eldritchmayo's user avatar
0 votes
1 answer
261 views

Linear mixed effect model with years as random effect

I have to set up an LMM with just one independent variable and there is both monthly and yearly variation. I aim to get fixed effects coefficients (slope and intercept) for each month and year given ...
anbu's user avatar
  • 1
3 votes
1 answer
128 views

Converting lme4 syntax in lmm equation

I have computed a model with the lme4 package with the following syntax: y ~ time*treatment*covariate + (1|subject) The ...
Fabi's user avatar
  • 75
2 votes
1 answer
172 views

Can I do multiple binomial tests seperately of each other?

in the experiment the subjects had to choose between answer A and answer B in 3 different settings. The question is, if there is a significant preference for answer A in any of the settings. Can I ...
Fiona Gharamber's user avatar
1 vote
1 answer
2k views

glmer.nb does not converge when one variable is included in the model

I encountered an issue when using glmer.nb() to model my data. First I used fitdistr to tell me which distribution fits my data. ...
PeterPanPan's user avatar
7 votes
1 answer
6k views

Specifying model in glmer() - interaction terms

I am running a generalised mixed effects model, of family logistic regression, using function glmer(). I am predicting likelihood of response (0/1) and my fixed effects to explore in my final model ...
Rebecca's user avatar
  • 83
4 votes
2 answers
1k views

Use Poisson or Linear Regression for Longitudinal Data?

I want to fit a regression with repeated measurements Outcome:number of cigarettes smoked in the jth month (j=1,2,3) The outcome variable DOES NOT follow a normal distribution. The outcome values ...
hard's user avatar
  • 53
0 votes
0 answers
67 views

Generalized linear (logit) mixed-effects model with the random (crossed) effects drawn from a bivariate normal distribution

I am trying to implement a generalized mixed-effects model specified as: Dependent variable $y = \log(\frac{p}{1 - p})$ where $p$ is a quantity measured for a pair of individuals ($i$ and $j$). $E(...
Pranav Goel's user avatar
3 votes
2 answers
2k views

Regression Modelling of Linear, Exponential, and Power Curves in R [closed]

Please note this is cross-posted: https://stackoverflow.com/questions/57982488/regression-modelling-of-linear-exponential-and-power-curves-in-r I am trying to model reaction time (and other) data ...
Chad Williams's user avatar