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
4
votes
1answer
37 views

Nested or Crossed Effects with Nationalities

I am working with mixed effects models and I am still a bit confused. While I have read multiple explanations of what the differences between nested and crossed random effects are, I am not sure how ...
2
votes
1answer
18 views

Nesting random effect within fixed effect, with additional nested random effect. Nominal logistic

Very new to R so please pardon my naivety. I am trying to run a sort of mixed effects nominal logistic regression model with my insect response data. I have 2 rearing treatments (hot and cold) and 3 ...
0
votes
0answers
10 views

Removing singularity effect error in a linear mixed effect model, testing interaction between 4 categorical variables

I conducted a fully factorial intercropping experiment using three different plant varieties of plant 'X' and and three additional crops symbolised here as 'a','b' and 'c'. The genetic diversity in my ...
1
vote
0answers
9 views

Are there non-parametric equivalents to analyse nested data?

I want to compare patient experience (continuous DV; N = 60) for two different treatment modalities (face to face vs. phone; between-subjects variable, one measurement). The sessions were run by one ...
0
votes
0answers
7 views

Nested data and data analysis options

I want to compare patient experience (continuous DV; N = 60) for three different treatment modalities (face to face, phone, chat; between-subjects variable, one measurement). The sessions were run by ...
0
votes
1answer
28 views

linear mixed effect models: random intercept, no fixed intercept interpretation

I'm learning about linear mixed effect models and I'm having a hard time interpreting a repeated measures model that has a random intercept, but no fixed intercept. As an example: ...
0
votes
1answer
21 views

Using and interpreting nested manova in R

I have measured the concentration of 7 elements in 30 Lakes. I have between 8 and 12 observations per Lake (i.e., I measured the ...
0
votes
0answers
15 views

Estimation using nested data

I want to estimate the average income for a location. I have nested data in the following way: A block is inside a neighborhood, which is inside a zipcode, which is inside a district, which is inside ...
1
vote
0answers
8 views

How to deal with variables that are follow ups of prior questions when using panel data? [duplicate]

I have a panel data set where one of the variables is employment status is where 1= employed and 0 = not employed. The other variables are for those who have employ=1, such as place of employment, ...
0
votes
0answers
24 views

Accounting for a covariate that only exists in one of two groups [duplicate]

I am examining how sex affects the relationship between 2 variables. So, my model looks like: $$ y \sim sex * x $$ However, there is a known effect of menstrual cycle on $y$ (obviously in females only)...
0
votes
1answer
27 views

Should a nested random effect be included if it has only one level for ONLY ONE fixed effect level?

I have one fixed effect (group) and one nested random effect (nested). There are 20 levels of ...
1
vote
1answer
63 views

Does linear mixed effect models fit to analyse nested data?

I am searching for correlations between symptoms severity and the parameters of neural activity in a disease model. As predictors, I have two (slightly collinear) measures of disease severity on each ...
1
vote
1answer
46 views

Nested ANOVA and Assigning Proportion of Variation

I have blood biomarker data from 6 subjects. Blood was collected on 3 occasions from each individual. Each blood sample was processed 3 times (3 technical replicates). I want to use these data to ...
0
votes
1answer
20 views
0
votes
1answer
45 views

Mispecified random effects in mixed model

This is a simplified example of my model formula: Response ~ Treatment * Condition + (1|Plot/sublot) Treatment and Condition have 2 levels each, (say A/B and a/b)...
0
votes
0answers
21 views

Is it valid to build a binomial hierarchical model with skewed observations between random effect levels?

I am trying to model the relationship between vegetation growth and insect outbreaks (binomial: 0=non-outbreak, 1 = outbreak) by bioregion and season. To do this, I am constructing a hierarchical GAM (...
1
vote
0answers
43 views

Type of ANOVA to use: Split-Plot, Nested … or others? Water quality project

I was wondering if I could get some help in determining the correct ANOVA analysis to run on a water quality project in am working on. My dataset have the following variables: Habitat Type (fixed) (...
0
votes
0answers
26 views

Adonis formula with nested factor and time series and other metadata

I have a microbiome data from soil samples. I want to test the beta-diversity among different variables (such as time, soil depth, soil ph, cultural practices etc). The experiment looks like in the ...
1
vote
1answer
31 views

Cross-classified mixed models in lme4: How to code cluster variables when there are >2 random intercepts?

Let's suppose that I have a dataset where individual responses to a questionnaire are cross-classified within two grouping variables, G1 and G2. Based on this very informative post, it seems that ...
4
votes
1answer
128 views

Should repeated measures be included as a nested or a crossed random effect in glmer?

I have a field experiment looking at the effect of a seed-mix treatment on moth abundance and I am struggling to define the correct random effects structure. My experiment is structured like this: I ...
1
vote
0answers
44 views

How to estimate a nested logit model using mlogit in R in the case of panel data and degenerate branche?

I'm using a Discrete Choice Experiment. I have 9 choice sets with 3 alternatives (2 alternatives and an opt-out), the alternatives are described with 4 attributes. I want to use a nested logit model ...
1
vote
1answer
61 views

Combining customized contrasts + nested ANOVA (?)

I would like to get some advice on running a customized contrast analysis. I have looked at a few vignettes and I think I get the basic idea, but I'm not sure how to adapt them for my purpose. To ...
3
votes
0answers
31 views

nested mixed effect ANOVA (lme4): can a factor be a fixed effect AND a nesting term for a random effect? [duplicate]

I study fish in a single large river and want to know if fish length differs between 3 large sampling 'sections' of the river. To answer this question, I measured hundreds of fish lengths within five ...
4
votes
1answer
49 views

Nested random intercept

I am calculating a three level HLM. The first level are the measurement points, the second are subjects and the third therapists. I am investigating the effect of an intervention, which is only ...
0
votes
0answers
22 views

How to run a nested RM-ANOVA?

I have some data in the following format: 4 conditions, within subject, multiple measurements per subject. Condition is the fixed effect, and subject is the random effect. The random effect is nested ...
1
vote
0answers
38 views

How to compare four conditions with nested subgroups of measurements in python? [closed]

I'd like to ask for some advice on what statistical inference I should run on my data with the following design: There are 4 conditions. Each subject was tested for each condition (->within subject ...
2
votes
0answers
40 views

Selecting the correct clustering variable when calculating robust meta-analytic tests and error terms for dependent data [closed]

Background I am revising a meta-analysis for publication and have been asked to adopt a multivariate modelling approach using the rma.mv and robust functions within the metafor package in R. ...
0
votes
0answers
4 views

Prewhitening nested data

I am studying daily associations of pain and physical activity for 10 individuals. I will split the data by individual when conducting the regressions. Do I also need to split the data by individual ...
2
votes
1answer
32 views

Mixed effect nested anova

I try to find a good model to my data but I get stuck all the time as I'm not so good at statistics. I have data on approximately 100 fishes and each fish has been incubated in one of four possible ...
2
votes
0answers
19 views

Multilevel Analysis for count variable

I have a general question about multilevel analysis and have therefore created a minimal example to represent the data I want to analyse: ...
1
vote
2answers
115 views

inconsistent results in two-way repeated measure analysis using mixed models

I have two factors: interval with two levels, and spd_des with three levels. Each of the subjects (grouping variable ...
0
votes
2answers
66 views

Mathematical notation (or formula) of mixed effect models

I am unsure how the correct mathematical notation of two mixed model I've estimated in R should look like. The data consists of test scores of students that were in different classes. Some of the ...
0
votes
0answers
56 views

Did I appropriately run a permanova on an additive model with nested factors in R?

Because I don't have a statistician readily at my disposal and I am still fairly new to multivariate statistics, I hope maybe one of you out there could maybe check whether I did an appropriate ...
0
votes
0answers
16 views

Nesting with 2 by 2 levels

I have data from an experiment where individuals were sampled from a brackish and a saline plot in two populations, so for a total of four plots. Ideally I would have many more populations and ...
0
votes
0answers
24 views

Correlation between two variables from nested, non-normally distributed, semi-continous / count data

I am interested in correlating the physical distribution of cell types and cellular material within tissue that has been imaged as a large grid of images (each grid is a datapoint). My data comprises ...
1
vote
0answers
106 views

How to formulate nested random effects in gam

I'm interested in how growth of a fish species is related to several environmental variables. Those variables are measured at the time of capture, but several fish can be captured in a single sample (...
1
vote
0answers
129 views

Need help: nested fixed effects in nlme()

I have two fixed effects in a nonlinear mixed effect model. One is nested in the other, as the case here: "Specie" is nested in 'category'. ...
1
vote
1answer
73 views

Multilevel Non-parametric Model: using signed ranks in a classic linear mixed model?

I have data that with my best efforts cannot be transformed into something resembling a normal distribution. Or more specifically, the residuals of the linear model I want to run on the data is in no ...
0
votes
0answers
50 views

How to adress nested data structure in random forest classification [duplicate]

I am trying to predict premature termination of treatment based on symptom change in the first part of psychotherapy (using high dimensional data). I have run a random forest model which performed ...
0
votes
2answers
49 views

Model specification in nlme: Random effects

My design has a total of 20 sites. 5 sites belong to each of four land covers: A, B, C and D. In each site, I have 5 sampling locations, 2 metres from each other. From each sampling location, I ...
1
vote
0answers
87 views

Should I be using a three-level or two-level MLM?

I am running the following study, and I am unsure about the best analytical approach. I have two ideas, but I'm not sure either one is correct. I am grateful for any feedback. I am conducting a study ...
0
votes
0answers
18 views

Numeric variable as a nested fixed effect nested within the fixed effect of a 2-level factor variable in a Poisson GLMER?

Can a numeric variable be nested as a fixed effect within the fixed effect of a 2-level factor? In either case, I would really appreciate published sources that support any claims. I have a set of ...
0
votes
0answers
184 views

Multiple Nested Random Effects affecting a Mixed Model

I have a quite complex psychophysiological data dependant of different nested data in a repeated measures experiment. The first nested structure comes from the data collection were there are several ...
0
votes
0answers
28 views

Nonparametric equivalent of mixed model for nested data?

I have collected a nested data measuring cell growth which has two levels (3 patients with disease A, another 3 patients with disease B, another 3 patients with disease C). For each patient, cell ...
2
votes
0answers
127 views

Nested Fixed-effects in a GLMER. Continuous variable nested in one level of a two-level categorical variable. Is it possible? [closed]

I am not asking for help in the coding unless that may resolve the issue. I am wondering if this is even possible from a statistics standpoint and if it is, how I go about resolving it, because all my ...
5
votes
1answer
32 views

nesting/crossing in lme4

My question relates to the excellent answer given to this question a couple of years ago "Crossed vs nested random effects: how do they differ and how are they specified correctly in lme4?" The answer ...
1
vote
0answers
73 views

BACI ANOVA with nesting in interaction

I'm doing a BACI (before-after-control-impact) analysis. The data structure is as follows: 2 sites (one control and one impact), 2 years before and 2 years after. Assuming that sampling years aren't ...
0
votes
0answers
45 views

How to write model with fixed factors nested in random one?

I'm at the beginning of models understanding so this question is maybe childish, excuse me, please. It is close to this but there are some differences and I'm not sure how to implement that solution ...
4
votes
1answer
48 views

How to deal with subset of variables that are invariant for subsets of sample

I am thinking about a problem in which I have a sample which consists of subsamples with the same values for a subsample of independent variables. I want to apply a simple linear regression with ...
2
votes
1answer
98 views

nested random effects in mixed effect models across different levels, and associated DF

I would like to fit a mixed effect model to the following dataset, but I am having difficulties figuring out the best way to define the random effects. For each subjects (...

1
2 3 4 5 6