Crossed random effects refers to 2+ sets of random effects where levels of 1 random effect can occur in multiple levels of another. Eg, students in classrooms are nested, but students reading different stories could be crossed.
Questions tagged [crossed-random-effects]
36 questions
149
votes
1 answer
Crossed vs nested random effects: how do they differ and how are they specified correctly in lme4?
Here is how I have understood nested vs. crossed random effects:
Nested random effects occur when a lower level factor appears only within a particular level of an upper level factor.
For example, pupils within classes at a fixed point in time.…

Joe King
- 3,024
- 6
- 32
- 58
6
votes
1 answer
lme4 - correct formula for a crossed factor nested mixed model
I am having a little trouble verifying correct notation for a crossed factor nested mixed model anova using lme4 package in R. My data is experimental, I applied two crossed treatments (light and nutrients) and measured growth of algal cultures, and…

Rose
- 63
- 4
6
votes
1 answer
Bootstrapping with more than one random effect
Consider an experiment with $m$ subjects and $n$ words. Every subject rates every word, producing an $(m \times n)$ data matrix $\hat{X}$. I am interested in forming a confidence interval around $f(\hat{X})$ where $f$ is some arbitrary scalar…

Trisoloriansunscreen
- 1,669
- 12
- 25
5
votes
1 answer
Lmer model syntax for a combination of crossed and nested random effects
I'm trying to use the lmer() function in R to specify a particular random effects structure for a model that has four levels: each measurement on a students occurs in one or more groups, and each group occurs in one of several districts.
The…

user2363777
- 153
- 6
4
votes
1 answer
Interpreting nested random effects
I was playing around with some data and had hard time to understand the meaning of nested effects.
Here's an example of a dataset (selfesteem2 from package datarium)
dat <- structure(list(id = structure(c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L,
9L, 10L,…

User33268
- 1,408
- 2
- 10
- 21
4
votes
1 answer
crossed random effects with autoregression, glmmTMB
I am working on data that have crossed random effects as well as a autoregressive covariance structure. I would like to check if there is something unlogical about my approach, as the model I would like to fit produces problems in the Hessian. I am…

Peter
- 41
- 2
3
votes
1 answer
Equation notation for crossed-effect mixed models
I have conducted a crossed-effect logistic regression using Stata's meqrlogit command and have been asked to provide the equation notation. I have participants (ID) who each rated 8 activities (act) and I am looking at the impact of 3 independent…

James
- 31
- 1
3
votes
1 answer
How to build a GLMM that observes the years since experimental design was established?
Hello, my first question, quite individual, so I find it difficult to relate already answered questions to mine.
I have observed the vegetation development in forests of 5 different areas (area) in an experimental experiment. The design can be…

Ole Herbchandler
- 33
- 5
3
votes
1 answer
How to fit the right cross-classified multilevel model
. I would like to study the link between mortality (outcome and binary variable) and competition between hospitals (Predictor). The competition faced by the hospital is measured by the Herfindahl-Hirschmann index (HHI), which is a continuous…

Seydou GORO
- 505
- 2
- 9
2
votes
1 answer
How do I specify crossed random intercepts in lme?
I want to run a random intercept mixed-effect model, with two random intercepts. I made some example data below, which consists of 10 subjects from 3 families that go to 3 different schools. They get two types of training, that I want to include as…

Abdel
- 73
- 1
- 1
- 13
2
votes
1 answer
Negative binomial regression analysis with crossed random effects
I face a challenge in running a model comprising (1) crossed random effects and (2) a zero-inflated negative binomial regression in R.
In the study, I analyze interactions between organizations. Specifically, I check how often x dyads of…

Lea
- 45
- 3
2
votes
1 answer
Linear Mixed Model With Partially Crossed Random Effects
I am trying to apply a linear mixed model on my data. Unfortunately all howto's and papers I found yet do not help me with my design:
I have 30 different texts (stimuli) which are rated on 5 items (on the text quality) by the participants. Every…

HenrikG
- 77
- 4
2
votes
1 answer
Crossed effects in lmer or lme4
I conducted an experiment where I want to predict response times in a picture classification task from person characteristics (age, prior experience) and item characteristics (similarity; color, shape, background). All participants saw all items and…

achmed
- 33
- 2
2
votes
1 answer
Crossed or nested random effects in a repeated measures and a between-subject design?
After reading a lot of material on nested and crossed effects, I am still unsure on whether the random effects in my design are nested or crossed. I would really appreciate advice from some more seasoned linear mixed model users!
Design: Two…

Bronte McKeown
- 23
- 4
2
votes
1 answer
Singular fit for a mixed-effects model with crossed design
I have a dataset where different features were measured for three conditions. Each feature consists of sub-features, and sub-features are nested within features. I'm interested in the contrasts cond1 vs ctrl and cond2 vs ctrl on the feature level.…

Frederik Ziebell
- 131
- 3