Skip to main content

Questions tagged [nested-data]

Refers to nested experimental design, nested random effects in mixed models, nested factors in ANOVA.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Should I use mixed effects model?

I have a sample of real sales data about plant-based products. These data are collected across a monthly period from 2019 to 2023. So I have something like 1-2019, 2-2019, 3-2019, and so on. But they ...
Margherita's user avatar
3 votes
1 answer
41 views

Nested, Crossed or both random effects

I am building a GLMM model with a binomial response variable, and I am having trouble determining which combination or nested or crossed effects to use. My situation is the following: 1.) I have ...
geoscience123's user avatar
0 votes
0 answers
35 views

Describing data structure and specifying a linear mixed model in nlme with nested and crossed effects

I am trying to specify a linear mixed model to analyse data with the following structure and have several questions about correctly describing the structure of the data and how to specify the model. ...
Pratorum's user avatar
0 votes
0 answers
33 views

Multilevel Modelling with Crossed and Nested Factors in R

I am trying to create a model to determine the effects of Stations and Circuits (and any interaction) on students scores in an OSCE exam, using the lmer function in R. I have 3 factors: circuit $\beta$...
D Ram's user avatar
  • 1
1 vote
1 answer
74 views

How to deal with this very nested data

I have run so many models and am so, so confused. I've attached an image of sample data that matches my structure. I have a single score per conversation (score is ...
user5826447's user avatar
1 vote
1 answer
37 views

Linear model with nested random effects

I'm having trouble understanding how to specify my statistical model in the R function lme4::lmer to perform a mixed linear model with nested data. My data set has ...
elcortegano's user avatar
0 votes
0 answers
50 views

lmer (lme4) nested random structure gives singular fit

I'm running the following model on some reaction time data: ...
Brechje van Osch's user avatar
1 vote
1 answer
43 views

Nested effects in lmer model

I have the following data structure: ...
hilberthotel's user avatar
1 vote
1 answer
21 views

How to specify a model with multiple treatment groups, measured twice, repeatedly across a time period (lme4)?

I have 30 animals (factor: animal_id, 30 levels) which have been treated with a drug or a vehicle (factor: treatment, 2 levels). ...
doesnotcompute's user avatar
0 votes
0 answers
30 views

Formulating a linear mixed model with multiple random effects when one is not independent

I have a randomized complete block design. I have formulated linear mixed models using R, the package lme4, and the function lmer for all measurements except for one, where I am stuck on the random ...
Ag123's user avatar
  • 1
3 votes
1 answer
56 views

Linear Mixed Models: Accounting an effect as a random intercept or slope

My goal is to test whether reaction is significantly different between tasks (a, b, and c). However, the order in which I run the tasks in my experiment may affect the reaction. But I'm not interest ...
Trudy's user avatar
  • 31
1 vote
1 answer
108 views

Setting random effect and nested random effect correctly in glmmTMB model

I have been having trouble fitting my data of seedsets of flowers. I have gathered data from seven flowering species in four different elevations. Not all the species appear in every elevation and the ...
Dominik Anyz's user avatar
5 votes
1 answer
94 views

Does performing Likelihood Ratio Test to compare two nested LASSO models make statistical sense?

From what I've studied, the LRT is used to compare two nested models, i.e. 2 models having different sets of nested features, in my case e.g. Model1: binary_outcome ~ X1 + X2 Model2: binary_outcome ~ ...
Argh__1's user avatar
  • 53
1 vote
2 answers
298 views

Random Intercept vs. Random Slope Linear Mixed Effects Model with Nested Data

I have read a lot about random intercepts vs. random slopes in linear mixed effects (LME) models, but I am confused on how to think about them when it comes to nested data. I have looked at other ...
rhingo3's user avatar
  • 41
0 votes
0 answers
14 views

Summary statistics (mean and standard error) of split plot nested design- using R

I have a study with a split plot design where every season (wet and dry) we sampled for 3 years at 8 sites. At each site (fixed factor), we have plots (nested within sites) and then we have subplots ...
Veronica's user avatar
2 votes
0 answers
77 views

Equivalence test with random effects

I am designing an experiment where I will test different subjects’ multiple times under two different conditions (lab and real life) My hypothesis Is that that the subject will perform equivalent in ...
Simen Leithe Tajet's user avatar
1 vote
0 answers
60 views

How to mathematically prove the "transitive property of nested predictors"?

QUESTION I am studying the structure of experiment data sets, and I want to propose a rule that I call the "transitive property of nested predictors". The general idea is that… if there are ...
Chris Science's user avatar
5 votes
1 answer
125 views

How to model nested data with repeated measures

My data is like this: I have N students from different courses (variable course_id) that where asked about household income (...
LulY's user avatar
  • 232
4 votes
1 answer
96 views

How to structure repeated measures in GLM based on my study design? Nested or not nested

So I'm having some trouble deciding how to format the repeated measures in my model. Basically deciding between: ...
Beo's user avatar
  • 41
7 votes
3 answers
405 views

Mixed model with nested and crossed random effects

I'm new to mixed effects models and am trying to use the lmer() function from the lme4 R package to specify a random effects ...
Tim's user avatar
  • 125
0 votes
0 answers
20 views

Unusually High Variance in a Nested Model

I have a dataset containing lizard home range estimates and several environmental variables. My end goal is to create a model that uses the best combination of environmental variables to predict home ...
Jason Edelkind's user avatar
0 votes
0 answers
24 views

GLM with nested predictor and non-nested outcome

I am using GLM to analyze the effect of career type (4-category discrete) on performance score in a competition (1-100 continuous). I am interested to know whether a particular career type results in ...
ppanko's user avatar
  • 101
0 votes
0 answers
55 views

Interpretation of interaction and nested random effects in mixed model

I have two questions: How do I interpret and report the variances of my mixed effect model in lmer? Is this mixed model appropriate for my study? Set up: In my study I'm rearing fish in two ...
Mimi's user avatar
  • 1
2 votes
1 answer
49 views

Is nesting needed if pot is the experimental unit?

I am analyzing an experiment where I grew two genotypes (native and invasive) of the same plant in one pot and evaluated growth over time. Half of the pots had two plants of the same genotype (native-...
Plants n bugs's user avatar
0 votes
0 answers
17 views

Sensitivity Analysis selection for nested data?

So the data I'm working with is GPS tracking data of pelicans and Offshore rigs with the goal of seeing if pelicans are positively or negatively affected to the presence of rigs. But before I can do ...
Jackson Grady's user avatar
1 vote
1 answer
142 views

Specifying a mixed effects model with repeated constructs but cross-sectional observations (crossed vs. nested data at three levels)

I have a question about specifying a mixed model with crossed data across multiple levels. Consider the following situation: Let’s say I collected data on Americans’ perceptions about the importance ...
JmQ's user avatar
  • 129
3 votes
2 answers
167 views

Nested data correction with mixed models

We have collected data from n patients, with each patient having one eye treated and the other untreated. We would like to see if the treated eye progresses differently to the untreated eye using ...
JP1's user avatar
  • 201
0 votes
1 answer
104 views

Multivariate Longitudinal Multi-level Model: What is the hierarchy structure?

I am interested in running a multivariate multi-level model with longitudinal data, and I'm having a hard time conceptualising the hierarchy levels. My variables are: Multivariate outcome: Quality of ...
Emma L's user avatar
  • 1
1 vote
1 answer
169 views

Simulation Study for a Nested Random Effect Model

I am trying to simulate data based on two random effects and no fixed effects. The simulated data table contains nP projects and within each project ...
Marco's user avatar
  • 11
1 vote
1 answer
55 views

How does the REML fitting procedure know when a predictor is nested

Consider an experiment with two categorical predictors, A and B, where the levels of B are nested within those of A, and thus described by the following design information: A B 1 1 1 1 1 2 1 2 2 ...
Chris Science's user avatar
1 vote
1 answer
56 views

Repeated measures ANOVA modeling question

I have a (to me) complex experimental design I'm working on pre-registering and I want to make sure I'm approaching the model correctly. I've attempted to offer an illustration of the design below. I ...
Teresa's user avatar
  • 11
0 votes
1 answer
60 views

Nested ANOVAs in R vs Averaging Data Points

I am working on a problem involving subject workload in different conditions. During my experiment each subject only experiences 1 condition (out of 3 possible conditions). They complete 7 trials and ...
user391818's user avatar
3 votes
1 answer
479 views

What advantages do we find when using a mixed model for nested data instead of multiple regression?

I'm learning about mixed models because in my job we are trying to advise researchers about statistical questions they might have. So long I've been learning using the demidenko mixed model book and ...
Jorge A's user avatar
  • 67
4 votes
1 answer
207 views

A random effect nested in another random effect in R with mgcv package

I am interested in examining the relationship between yearly income and student success, taking into account the hierarchical structure of the data. The data includes schools as random effects, with ...
insan's user avatar
  • 125
0 votes
0 answers
18 views

Random factor nested in multiple other factors

I have some hierarchical data and I'm struggling to figure out how to code it in my model. The data was taken on 20 individuals from 18 total sites: 9 sites in year 1 and 9 sites in year 2 and each ...
user388956's user avatar
0 votes
0 answers
40 views

Double nested lmer [duplicate]

On island biology I am currently doing a research on the difference in seed fall the between island. For this research I collected plants on the islands and dropping 5 seeds for eacht plant. This ...
sam gebruers's user avatar
1 vote
2 answers
287 views

Mixed model with two fixed effects, with repeated measures for only one of them

I am using linear mixed effect models to study the effect of a physical therapy treatment on two different populations of patients (Adolescents and Adults). The treatment is the same for both ...
Cristiano's user avatar
  • 529
2 votes
0 answers
53 views

How to deal with the rank deficiency in lmer for nested variable

Data and background of the study: The data is a repeat measurement of metabolite levels in responses to 2 types of stimuli. The data measured in 4 sessions— ...
Noach's user avatar
  • 21
2 votes
0 answers
29 views

Interpretation of results from a mixed-effects model with a nested design and autocorrelation

We are using a mixed-effects model to assess the potential impact of different treatments (categorical variables) on a specific soil characteristic (numerical variable). The study uses a randomized ...
nmd17's user avatar
  • 21
1 vote
0 answers
59 views

glm with nested treatments

I am currently doing the statistical analysis for my master thesis. In my experiment, I have 3 species that I expose to Erosion treatments. After every treatment, I see what percentage of each species ...
sam gebruers's user avatar
1 vote
1 answer
273 views

mixed-models in "nlme" package using lme() - nested data structure - error in model fitting - system is computationally singular

Cross-posting from stackoverflow I am working with a dataset having the following structure (download data here). The variable resp is a physiological response measured once for every subject during ...
Suhas Bharadwaj's user avatar
0 votes
1 answer
59 views

Ideas for binomial generalized linear mixed model with both phylogeny and random intercepts?

I've been struggling to find a description of an approach to a situation like mine or any R packages that seem capable of handling my needs. I have a large dataset (~80,000 rows) where my dependent ...
Brad Carlson's user avatar
1 vote
1 answer
39 views

Experimental design with two factorial treatment and blocks of the treatment combination

I am going to do an experiment with planting seeds involving 2 factorial treatments. There are 4 families of seeds: F1, F2, F3, F4 and 3 foliar seed treatments: T1, T2, T3. There will be 160 seeds for ...
Sylvia Anderson's user avatar
2 votes
0 answers
37 views

Whats the model of this experiment

$36$ blood samples are collected at random from a blood bank and $6$ samples are sent to $6$ laboratories for studies. The assignment of each sample to each laboratory is random. A friend of mine told ...
Jonathan Baram's user avatar
3 votes
2 answers
237 views

How to deal with nestedness of fixed factors in a linear mixed effects model (lmer in lme4)?

I am new to analyzing complex datasets using mixed models in R, so please forgive me if I am asking something very basic. I'm currently trying to write a linear mixed model using the ...
Anis's user avatar
  • 41
1 vote
0 answers
35 views

Colinear nested variables and hypothesis testing for higher-level variable in non-randomized experiments

We have a study setup for testing a new learning treatment, which basically looks like this: We have 4 tracks (same university course taught by different lecturers). In two of these tracks, the ...
CodeSalad's user avatar
  • 111
1 vote
0 answers
61 views

Identifying random effects structure to simulate dataset - lmer

I am trying to simulate a dataset based on an existing study. 60 participants completed the experiment twice. Each time, they were randomly assigned to either condition A or condition B. The condition ...
alex's user avatar
  • 11
3 votes
2 answers
522 views

Multilevel regression question: can you use level 2 variable as a predictor variable?

I was just reading a paper in the field of education and there was a part I couldn't comprehend. The author did a multilevel regression analysis with the data which was nested in a school level. So ...
Danielle G.'s user avatar
1 vote
0 answers
21 views

Crossed effects without all combinations

There are a number of posts on Cross Validated explaining the difference between nested and crossed random-effects. In this example, it is noted that all feasible random effects categories are linked ...
geoscience123's user avatar
1 vote
0 answers
89 views

How to specify nested random effects in a model with nested fixed effects

I have an experiment predicting $y$ from the interaction of two two-level categorical independent variables, $x$ and $z$. (My actual design is more complicated, but I'm simplifying here to get at the ...
Jigsaw's user avatar
  • 111

1
2 3 4 5
8