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
0
votes
0answers
11 views

Matching output from PROC glm in SAS to lme in the nlme package in R

I have a nested design with a fixed factor (Status) at the top. Nested in Status is Population, and nested in Population is Family. There are a few different responses I am fitting to this. In SAS, ...
1
vote
1answer
16 views

Mixed effects model for nested data

I'm facing a problem similar to the following. There are 8 schools and each one contains a certain number of students. For each student I have a set of continuous variable (one of which is the ...
0
votes
0answers
19 views

Syntax for a random effect in an R regression - not sure if nested, and how to express?

I am running an ordinal regression for an experiment I have conducted, where the DV is ratings on a 5-point scale, and the predictors are the type of item, the type of participant (native speaker/L2/...
1
vote
0answers
27 views

Power, split plot designs, and mixed models

My teammate and I are trying to determine the best way to allocated limited resources (shade cloth and fencing) in an experiment. We are considering 2 factors: light availability (2 levels) and water ...
2
votes
0answers
27 views

Experimental Design for count data in a (4X2) Factorial with replication

I am in need of help choosing a statistical model for count data with experimental replication. The Experiment (4 X 2 Factorial experimental design) -Factor A = Control, Low, Medium, High. -Factor B = ...
0
votes
0answers
22 views

Random effects structure using glmer: need for a nested structure?

I am analyzing data from a field experiment looking at the effect of different plant species (“treatment” with 6 levels) on pollinator visits (“visits”=response variable). The experiment is a ...
3
votes
1answer
31 views

How to build a GLMM that observes the years since experimental design was established?

Hello, my first question, quite individual, so I find it difficult to relate already answered questions to mine. I have observed the vegetation development in forests of 5 different areas (...
0
votes
0answers
12 views

Why does using unique labels for nested units in aov() give some different confidence intervals?

In my Answer to the Question ANOVA represenation of mixed model with crossed random effects and uncorrelated variance structure I came across something I did not expect concerning the output of aov() ...
1
vote
0answers
11 views

Compare Nested Means

I have nested data and am trying to compare the means between two groups. I'm trying to compare student outcome data between two groups, those whose teachers used instructional strategy A, and those ...
3
votes
1answer
74 views

Mixed model with nesting

I am new to working with mixed models in R and am hoping someone can tell me if this syntax is correct. m <- lmer(y ~ maturity * type + (1|run/block)) Where ...
5
votes
2answers
85 views

Glmer with count data, nested design and repeated measurements

Currently I try to fit a model for counted Individuals (response variable, integer numbers) in Different types of traps (factorial explanatory variable). I have two different Biotopes, and three ...
4
votes
1answer
76 views

Interpreting nested random effects

I was playing around with some data and had hard time to understand the meaning of nested effects. Here's an example of a dataset (selfesteem2 from package datarium)...
1
vote
0answers
27 views

How to deal with meaningless values in machine learning? [duplicate]

I am using some classic models for ML, such as logistic and linear regression, K-neighbors etc, for a binary classifier. My dataset is complete, i.e. there are no missing values. But there are some ...
6
votes
1answer
97 views

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 “...
2
votes
1answer
60 views

ANOVA represenation of mixed model with crossed random effects and uncorrelated variance structure

I was expecting this to be simple when I started, it seems to not be the case. I am trying to model yield of bean genotypes. There were only 6 genotypes included. 3 trials were carried out in separate ...
2
votes
0answers
20 views

How to fit a multiple membership model when the factor is nested?

The accepted answer to this question explains how to fit a mixed effects model where there is multiple membership. I would like to know how to proceed when the multiple membership factor itself is ...
1
vote
0answers
45 views

Is adding conceptual sub-units to a model to deal with repeated measurements appropriate?

I've been contemplating this question by @user7937045 (Permutation test - can I apply it here?). The linked question is regarding whether or not it's ok, or even preferred, to use a permutation-...
1
vote
0answers
21 views

Hierarchical linear model in the context of an experiment

In an experimental study, I randomly assign participants to one of two conditions: Condition A (which they read Text A), and Condition B (in which they read Text B). After reading their assigned text, ...
1
vote
0answers
30 views

Two factorial time series mixed effect model using lmer

I'm facing a problem regarding the the selection of an appropriate model and right synthax using lmer()-command (lme4-package). But first let me explain the design of the study: Study design: I ran an ...
5
votes
1answer
43 views

How to deal with new levels in variable while making prediction in future using already trained model?

I have a dataset where students are nested in schools and school is my categorical variable with levels. In future, new school levels can be added while making prediction using already trained data. ...
0
votes
0answers
34 views

Help with name of a regression

My dataset is about clients in arrears and contain the two following columns: cured which takes value 1 when the client cured and 0 otherwise, and ...
1
vote
0answers
24 views

Nested hypothesis vs conditional statement, (likelihood ratio tests)

I am performing likelihood ratio tests (LRTs). The data set is not critical its the purity of the statistics that are important, but this is (phylo)genetics data. I am examining (tree) hypothesis '1' (...
2
votes
1answer
229 views

What to do with a singular fit with gls in R ? (mixed effect model and nested factors)

I am new to these kind of statistics and I don't understand the error I get since the same code worked before on an other set of data (with different levels in the factors). Here is my design. I have ...
0
votes
0answers
15 views

Nested data and the use of z standardisation

Let's assume that I want to compare patients' satisfaction with the services received for (1) on-site treatment, (2) treatment over the phone, and (3) treatment via email, and I have n = 20 patients ...
2
votes
1answer
35 views

Nested ANOVA: Correct use for colinearity problem?

We have neuronal data, that we want to analyse for effects of two factors that are hierarchically structured. The data: We have recorded neuronal data from a neuron, where the organism received visual ...
4
votes
1answer
51 views

Help understand data structure and appropriate model (hierarchial data wtih repeated measures)

I have credit card transaction data, that I will describe with a relationship diagram. There are thousands of records, which are tied to a credit card, tied to a customer. Each customer can have 1-2 ...
5
votes
1answer
51 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 ...
3
votes
1answer
31 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
18 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
11 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
11 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
35 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
60 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
19 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
9 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
34 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
52 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
65 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
125 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
38 views

Can I use a nested list structure as a feature for a logistic regression model?

Suppose I have a dataset that looks like this: ...
7
votes
1answer
113 views

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 ...
0
votes
1answer
52 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
28 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
46 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) (...
1
vote
1answer
68 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 ...
5
votes
1answer
173 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
92 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
193 views

weighted one-hot encoding

I am using one-hot encoding to transform my categorical variable. But it's not just a presence-absence situation. Consider the variable as a device that can have with different brands as well as ...
1
vote
1answer
118 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
35 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 ...

1
2 3 4 5 6