Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nested-data]

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

0
votes
0answers
14 views

interaction effect multifactor nested design for non-paired data

stackexchange, I am interested in the difference of the treatment effect in healthy vs diseased donors (treatment:group), but need to control for high donor variability. Figure 1 As can be seen in ...
2
votes
1answer
40 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
35 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
30 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
77 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
39 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
19 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
20 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
38 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
18 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
38 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
13 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
56 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
10 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
37 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
47 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
10 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
19 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
16 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
31 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
48 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
41 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 ...
0
votes
0answers
14 views

Nested models and ANOVA: F ratios

I have some commuting data involving a factor B (district) that is nested inside another factor A (city). I am assuming both factors are fixed. I have calculated F ratios involving $MS_A/MS_R$ and $...
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 ...
0
votes
1answer
38 views

Nested design with “lmer” function

I have a nested data which I cannot model properly. The data satisfies all the assumptions of ANOVA. Data description: 4 varieties of plants planted in 4 blocks and in each block the same variety has ...
0
votes
0answers
17 views

Hierarchical model for identical dependent variable

I want to estimate a model with fixed-effects regressions. LMER in R and SEM (lavaan) do not converge and I wonder if the data structure itself is the problem. The dataset contains individual-level ...
2
votes
0answers
27 views

F ratios, ANOVA, and 2 stage nested (mixed) models in R

I have data relating to strength of fabric. Each fabric comes from one of 4 batches (B), and batches come from one of 3 suppliers (A). My question relates to the calculation and interpretation of F ...
1
vote
0answers
42 views

Mathematical description of covariance matrix

Using the nlme R package, I specified a model of the form ...
3
votes
2answers
86 views

Covariance structure with one or more random intercepts

I need to choose a suitable covariance structure including one or more random intercepts: If one factor B is nested in another factor ...
2
votes
1answer
73 views

Mixed effects model failing to converge - better to remove the random intercept? slope?

I have data for classes that are nested within schools There are two classes for most schools (n = 240), but I also have some schools with which I have more than two classes. i.e., 20 schools with ...
0
votes
0answers
20 views

Variable selection with nested data

I am interested in creating a risk score for a binary event. We have large pool of patient-level candidate predictors -- about 30 plus some expected interactions. The data set is large in terms of ...
1
vote
1answer
114 views

Mixed Effects Model: How to Specify a Random Effect Nested Within 2 Factors in R

I have some example data that I need to fit using a mixed effects model. I can do this in Minitab, but struggling to specify the model correctly in R. I need 2 factors treated as fixed effects "...
0
votes
0answers
43 views

Logistic regression with separation and nested design in R

Data: An item can be in the state 0 or 1 (binary). Each year, it starts in the state 0 and then changes to state 1. I have data of 4 seasons (2010 -2013). Each year I sampled the (same) individuals ...
0
votes
0answers
20 views

What is the correct number of measurements and groups in the following Design?

I using GPOWER: "Anova repeated measures within factors" and need help in giving a correct number to the following inputs: Number of groups. Number of measurements. The design is as follows: I have ...
1
vote
2answers
55 views

Actual meaning of anova table

I am having trouble understanding this simple example form the book Applied Survival Analysis in R. The example is as follows, Consider three cox models Model A only contains ageGroup Model B only ...
1
vote
1answer
96 views

Mathematical notation / formula of a mixed effect model

I am unsure how to define the mathematical notation of a mixed model of R. I built the model in this way: ...
6
votes
1answer
619 views

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 ...
0
votes
1answer
44 views

Imputing nested time series data with R

Does anyone know what is the superior algorithm to impute data in time series? I had strong dropouts over time because it was free to participants how many times to participate in my study (otherwise ...
1
vote
0answers
56 views

Time Series sampled at varying frequency - Employ Linear Mixed Model to compare trends?

I hope that this question has not be asked like this elsewhere, if so I could not find it during my google research.. I have the following problem: I have data sampled from different sensors("ID") ...
1
vote
1answer
111 views

Specifying random slope in a nested random effects

I collected crop yield and rainfall data from multiple counties and year ( > 30 years). Each county can only belong to one province and each province can only belong to one region. I am interested in ...
0
votes
1answer
64 views

Linear Mixed Model in R: Rep. Measures, Nested, Random Effects

I ran a study with the following design: Subjects were presented 100 different stimuli and asked to indicate their liking (scaled from 0-10) for each stimulus. Each stimulus was part of only one of 4 ...
1
vote
1answer
53 views

Nested mixed model with longitudinal data and variables with very few observations

I am doing my first data analysis and I have a hard time translating the experiment design to the model I want to fit. I have a couple of basic questions about the overall coding of the model, and a ...
0
votes
1answer
221 views

Multilevel nested glmer model (logistic regression) with 4 groups

I have 3 level nested data that is causing convergence problems (glmer function in lme4, R for multilevel logistic regression). The Data Country(4 groups) -> School(100 groups) -> respondent A ...
1
vote
0answers
27 views

Which statistical test to use in R? Unbalanced design with one dependent variable and multiple independent variables

it's been a while since I've had to do any statistics and I need a little help determining which statistical model/test to use in R. My background is more with multivariate stats, so it's been a while ...
1
vote
0answers
63 views

Linear Mixed Model for partially nested AND crossed factors

We are struggling with random effects for a linear mixed effects model that has partial nesting AND crossing. In our data, all individuals are coupled (male and female only, one couple per case). 2/...
0
votes
0answers
24 views

Interpreting interacting random effects in lme4

My questions is about how to interpret the output from lme4 for interacting random effects. Our model is as follows: ...
3
votes
0answers
51 views

Can this be solved using a binary logistic multi-level model?

Is it possible to solve the following task by using a binary logistic multi level regression? If not, how can you solve it? The concept as a diagram: I have the location of individual stores and ...
1
vote
0answers
50 views

Multi-level modeling using lmer in R

I have nested data as followed: 'Learning group sessions' in 'students' in 'learning groups' (each learning group consisted of different students and the learning groups chose to have between 3 and 10 ...
0
votes
0answers
27 views

Specification of partially nested / partially crossed longitudinal 3-level model

I am analyzing how properties of brain hemispheres change over time under different conditions. Each subject has a left (L) and a right (R) hemisphere for each of which I measure the property of ...