Refers to nested experimental design, nested random effects in mixed models, nested factors in ANOVA.
Questions tagged [nested-data]
331 questions
64
votes
5 answers
What is the difference between a "nested" and a "non-nested" model?
In the literature on hierarchical/multilevel models I have often read about "nested models" and "non-nested models", but what does this mean? Could anyone maybe give me some examples or tell me about the mathematical implications of this phrasing?

llama
- 791
- 1
- 5
- 6
41
votes
2 answers
Mixed Effects Model with Nesting
I have data collected from an experiment organized as follows:
Two sites, each with 30 trees. 15 are treated, 15 are control at each site. From each tree, we sample three pieces of the stem, and three pieces of the roots, so 6 level 1 samples per…

Erik
- 455
- 1
- 6
- 6
23
votes
1 answer
How do you deal with "nested" variables in a regression model?
Consider a statistical problem where you have a response variable that you want to describe conditional on an explanatory variable and a nested variable, where the nested variable only arises as a meaningful variable for particular values of the…

Ben
- 91,027
- 3
- 150
- 376
11
votes
2 answers
How to interpret an ANOVA table comparing full vs reduced OLS models?
I found this online and it is a good example of the problem I am having. In a case like this I am unsure what the first line is referring to. It is saying there are 15 DF and the RSS is 8.18. Is this line interpreted as the 'Between ' model…

B.Miller
- 669
- 1
- 7
- 13
10
votes
1 answer
When to include a random effect in a model
I'm new to mixed modelling and i'm confused as to whether its appropriate to use a random effect in an analysis I'm doing. Any advice would be appreciated.
my study is testing how well a newly developed index of mammal abundance can predict the…

jay
- 1,045
- 1
- 12
- 23
10
votes
1 answer
comparing groups in repeated measures FE models, with a nested error component, estimated using plm
I have estimated some repeated measures Fixed Effects models, with a nested error component, based on on grouping variables, i.e. non-nested models, using plm. I am now interested to
test if the full models are significantly different, i.e. $$H_o:…

Eric Fail
- 439
- 1
- 5
- 18
9
votes
1 answer
Minimum number of repeated measures and levels per nested random effect
I often read the guideline that a random factor should at least have 5-6 levels. However, it is not yet really clear to me if there is (i) a minimum number of levels for a nested factor within a block and (ii) whether there is a minimum of…

bee guy
- 829
- 7
- 18
8
votes
1 answer
Nested/SplitModel - RepeatedMeasures/MixedModel ANOVA: levels of nesting & scripting in R
My data set has the following variables:
Treatment (4 types- fixed)
Location (8 locations- fixed)
Position in Location (3 positions per location- fixed)
Samples are taken in each position (3 samples per position-random)
Time (two sampling times -…

Lorain
- 111
- 1
- 7
8
votes
1 answer
Feature Engineering : combine a categorical Feature and a continuous Feature
When we analyze data , we can observe several variables that may contain mutual information. For an example , There can be a binary variable such as Y=Have you ever smoke ? And then there will be a follow up question such that (in this case it is a…

student_R123
- 751
- 4
- 13
7
votes
2 answers
Can I validly expand the odds ratio analogously to the relationship between relative risk & the incidence rate ratio?
I am involved in a nested Case-Control study that involves cohorts of cases and controls entering a program, with the outcome of failure by six months. Cases and controls are individually matched on month / year of entry. I have a lot (>10,000) of…

David Cowan
- 71
- 1
7
votes
1 answer
GLMM - between, within and nested
I'm not entirely sure of fitting the model for experiment we've made. The variables and relevant description are as follows:
ID - participant ID
Trial - 60 for each participant
Memory - between subject binary factor
State - within subject binary…

Piotr Falkowski
- 218
- 1
- 10
6
votes
1 answer
Nested ANOVA: Unequal sample sizes? Variance components?
I am completely out of my depth on this, and all the reading I try to do just confuses me. I'm hoping you can explain things to me in a way that makes sense. (As always seems to be the case, "It shouldn't be this hard!")
I'm trying to help a student…

Sam R
- 395
- 2
- 10
6
votes
1 answer
How do I analyze bimodal distibuted data with a linear mixed model
The experiment I am working on has the following design:
A B C D E F
B A D E F C
A B E F C D
B A F C D E
Each Letter represents a different level of the single factor called “system” analyzed in this experiment. The dataset…

Thomas Baumgartner
- 303
- 1
- 15
6
votes
1 answer
Nested Anova vs Multilevel Linear Models
I am working on a problem which revolves around individual axons / nerve cells in two treatment conditions. All relevant questions are clearly on the axon level, and dependent on properties (size, myelination, etc) of individual axons. However, I…

vrtsig
- 71
- 4
6
votes
1 answer
Nesting terminology in mixed models
Suppose I have the following nested lmer structure:
lmer(Y ~ X1 + X2 + X1:X2 + (1 | A) + (1 | A:B), data=d)
which is the same as:
lmer(Y ~ X1 * X2 + (1 | A/B), data=d)
Now if I would write it out in a report, I'd say something like:
Y modelled by…

Stefan
- 4,977
- 1
- 18
- 38