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
1answer
31 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
26 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 ...
3
votes
1answer
38 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
12 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, which is nested into ...
1
vote
0answers
23 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
39 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
24 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
16 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
99 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
53 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
13 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
21 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
36 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
46 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
43 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
24 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
43 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
84 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
12 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
118 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
24 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
75 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 ...
4
votes
1answer
28 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
54 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
35 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
36 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
72 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 (...
4
votes
1answer
98 views

3x2 within subjects design with covariate that is nested within factor (?)

I want to test the differences in my interval-scaled dependent variable - measured at three time intervals (within subj.), for two conditions (within subj.), while accounting for a interval-scaled ...
1
vote
1answer
42 views

Correlations - multiple observations & multiple observers

I haven't found quite this question on here. I have a data set that typically requires generalizability theory to untangle however I now face a question I believe g theory can not answer. 17 ...
1
vote
1answer
91 views

Mixed Effect Models - choice of the random intercept

I'm using the glmer function from lme4 package to model a binomial phenomena in a human DNA dataset. An allele can be missing (1) or not (0). The dataset is created with 10 different samples. Each ...
2
votes
1answer
137 views

Coding nested factors for 3-level in rma.mv function of metafor package

I'm working collaboratively on an arm-based, network meta-analysis in the agricultural sciences. After carefully reviewing the Konstantopoulos walkthrough and Viechtbauer's slides to develop the code, ...
1
vote
0answers
26 views

How to calculate a sample size for a longitudinal study with repeated data?

Did you know a program or logiciel that allows to calculate the sample size for a longitudinal study with repeated data ? And if my subjects are nested in some schools, how I calculate the sample ...
0
votes
0answers
22 views

Can we apply statistics on replicated data (Nested repeated measure)?

In my study I have 2 groups i.e controls (n=23) and patients (n=30). And again in patients, I have 2 sub-groups i.e subgroup1 (n=15) and subgroup2(n=15). I have spinal cord area (SCA) at 4 different ...
3
votes
2answers
58 views

How to combine random effect and nested random effect with lme

I'm doing a mixed linear model. And I have subjects who have been select in 20 schools. So I want to take this to account. For this, I want to put a random intercept for the "SCHOOL" variable and a ...
1
vote
0answers
30 views

Repeated-measures anova and linear mixed effects models with nonrandomized data

I have data from 7 subjects (id) who performed 3 trials of each of 2 different kinds of movement (Factor mov) under 2 different ...
1
vote
0answers
78 views

Correct R formula syntax for lm (or manyglm) for a hierachial experimental design

I have an experimental data set where there are a 16 fish in 4 tanks (64 fish). There are two treatments - Heated and Control and four tanks. Heated was done in tank 1 and 2 whilst Control in Tank 3 ...
0
votes
0answers
15 views

Comparing cage average values… weighted, pooled, nested?

I want to compare food consumption between three treatment groups. Each treatment group had 20 individuals, however, due to logistical constraints they were group housed in cages with 2-3 individuals ...
2
votes
1answer
99 views

ANOVA with Error term

I am looking for help to create a model for the following data: I'd like to understand if the abundance of a certain microbial group (dependent continuous variable QUANTITY) found in soils is been ...
0
votes
0answers
21 views

Nested ANOVA (half sibling design) using binomial data?

Short question: I was wondering what kind of nested ANOVA-style analyses are available for binomial data? I would like to specifically compare the variances between Level A groups, but also between ...
1
vote
0answers
245 views

How to build a LME with nested random effects? A study with a very comlicated experimental design

I am trying to analyse the data on the climbing behaviour of flies. The design of the experiment was rather complicated, so I am currently struggling to build a propper LME model. The flies have ...
1
vote
1answer
64 views

What are some good examples of working through a multilevel model by hand?

I've been learning about multilevel models lately, and I understand the concept of shrinkage and partial pooling (I think), but I'm still confused to some extent on how partial pooling actually ...
0
votes
0answers
22 views

Comparing groups of empirical probability density functions

I'm a neuroscientist approaching doing some complex statistics and can't find anyone to point me in the right direction of what I need. I'm happy to read around the subject, I just don't know enough ...
1
vote
0answers
34 views

Right model approach for repeated observations

The problem: Panel Data, nested data or repeated observations for the same individual over eleven years. All independent variables are fixed effects and could be categorical or continuous variables. ...
0
votes
0answers
22 views

Stats for habitat preferences

I have what I think is a three level contingency table, with time spent in three habitats for two species, and whether their 'condition' was in the presence of a competitor species or not. example ...
2
votes
1answer
36 views

Nesting in experimental desing

Suppose I have following results from my 2 experiments that contain 3 Block each and there are 4 treatments per Block (the example is R based) ...
0
votes
1answer
51 views

Can someone confirm if I am running this generalized linear model in R correctly? Multiple observations in each experimental unit

I'm a grad student and stats beginner just trying to make sure I'm using the right model and using it correctly. I'm using R version 3.5.0. My data look like this: ...
1
vote
0answers
62 views

Is lmer or glmer appropriate for nested continuous proportion data

I have a reviewer that wants me to analyze my data along the lines: Con_Ratio ~ Range * Latitude * Longitude + (1 | Genotype/Pair). But I'm not sure if this can be done and how. My experimental ...
1
vote
1answer
36 views

Which stats can test differences between two experiments?

I have an experiment to look at habitat preferences of beetles and the effect of competition. In the first test, a beetle is on his own in an arena and I measured the % of time he spends in each of ...