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
1 vote
0 answers
26 views

What design is this: repeated, nested, other?

I've got a bit of a weird data set that at first glance, looks just like repeated measures. I'm hoping figure out if this is a special class of a more common type of model (e.g. repeated measures, ...
tlyons253's user avatar
1 vote
2 answers
40 views

Appropriate Linear Mixed Model for nested data

I'm asking for help with the structure of a linear mixed model I'm trying to run. Here is the description of my study: I am studying the effect of different stand types (Oak pure, Pine pure and Mixed) ...
Barcik's user avatar
  • 11
0 votes
0 answers
18 views

Setting predictor variables with 3-levels in multilevel mode

I am working with a random intercept multilevel modeling. I want to predict general health based on survey data. The survey uses nested data set on three levels: individual, county, and state. I am ...
YouLocalRUser's user avatar
0 votes
0 answers
18 views

Logistic regression question about adjusting for a variable

I am trying to analyze a dataset using logistic regression with 1/0 (disease/no disease) outcome sex (2 levels) and age of diagnosis (grouped into 3 levels + NA). The 0 outcome has no year of ...
Liz's user avatar
  • 1
0 votes
0 answers
18 views

Predicting Entity-Specific Outcomes in a Nested Dataset

I am working with a dataset where each row corresponds to a car trip, with less than 20 unique drivers and at least 500 trips for each. Each driver is labeled as either having or not having a certain ...
conradd_98's user avatar
0 votes
0 answers
30 views

Mixed effect model for two levels of repeated measures

I have a repeated measures dataset that I am attempting to analyze using linear mixed effects regression. I would like to compare the effects of different products (A and B) on a dependent variable (y)...
andrew2165's user avatar
2 votes
0 answers
92 views

Poisson two-way ANOVA test for Before and After treatment (including a control)

I am having trouble to determine what type of test to use in this experimental design: My data are like this: I got 10 treatment sites and 4 control sites Control sites are outside an area in which a ...
Sergio Nolazco's user avatar
1 vote
1 answer
70 views

Which statistical test would you recommend for this experimental design?

I measured the percentage of individuals that crossed an averisve barrier at six different time points for four different genotypes. The barrier is made out of an aversive substance that the control ...
MarsC's user avatar
  • 23
2 votes
1 answer
38 views

Longitudinal analysis of peer effect

I am working with hierarchical data (2 repeated observations on children nested within households), obtained from a RCT with 2 treatment groups. The primary goal of my analysis is to see whether the ...
Shen Shen's user avatar
0 votes
1 answer
20 views

List of 100 teams, each team has 10 players, each player has 10 performance metrics. How can I structure this using pandas Dataframes? [closed]

Effectively I already have one dataframe with team names against player names and another with player names against performance metrics
Heiko's user avatar
  • 37
0 votes
0 answers
18 views

Nested variable in regression model where factor has multiple levels

I have a situation where I have a factor variable $F$ and a continues variable say $X$. The factor variable takes on three levels, say ('x', 'y', 'z'), and $X$ is only defined if the value is $x$ or $...
clog14's user avatar
  • 231
1 vote
1 answer
45 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 some labels for this like "1-2019", "2-2019&...
Margherita's user avatar
3 votes
1 answer
49 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
1 vote
1 answer
70 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
37 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
80 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
41 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
56 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
61 views

Nested effects in lmer model

I have the following data structure: ...
hilberthotel's user avatar
1 vote
1 answer
28 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
57 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
163 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
127 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
821 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
17 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
109 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
156 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
  • 341
4 votes
1 answer
124 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
474 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
21 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
28 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
76 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
51 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
19 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
175 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
183 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
117 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
221 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 ...
Mexx's user avatar
  • 33
1 vote
1 answer
57 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
60 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
68 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
5 votes
1 answer
637 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
  • 107
4 votes
1 answer
260 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
  • 145
0 votes
0 answers
19 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
45 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
398 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
  • 539
2 votes
0 answers
66 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
31 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
2 3 4 5
8