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
13 views

How to interprate random effects in an lme model in R

I am having trouble understanding the results of my lme model. Could someone tell me how to understand the random effects? Here is my model: ...
1
vote
0answers
11 views

Testing L2 effects without any L2 variance?

I'm testing a hypothesized effect of an L2 variable on L1 outcomes (students nested in classrooms), but a few of my outcome variables have no L2 (classroom-level) variance (i.e. the within-classroom, ...
1
vote
1answer
47 views

Crossed random effects: how do we model multiple reciprocal transplants in lme4?

I saw the previous post on "Crossed vs nested random effects: how do they differ and how are they specified correctly in lme4?" with a very nice descriptive response from @RobertLong (...
1
vote
1answer
10 views

Is it correct to have nested random effects when you have multiple questions per item?

Let's imagine a study where people study 50 images. After each image they get get 5 true/false questions about the image (different questions for each image; e.g., was there a tree in the image you ...
0
votes
0answers
8 views

Ways to handle features that are not applicable for all records [duplicate]

I have a data set that contains records of distinct groups identified by a 'type' variable. Depending on value of this 'type' variable certain other variables are either applicable or not. Effectively ...
0
votes
0answers
2 views

Comparing germination times between treatments within two soil types for several species. Nested Anova?

I need to compare the germination times (days till germination) of several species which have had 3 different treatments applied to them. However, the treated seeds have also been placed into two ...
1
vote
1answer
23 views

Nested linear mixed modeling including a factor applicable to one subject group only

I am trying to build a nested linear mixed model (LMM) where 2 subject groups are compared, each with a set of measurements (time series). The outcome measure (dependent variable) is speech ...
0
votes
0answers
32 views

Nested variables in regression model

I have a nested variable situation similar to How do you deal with "nested" variables in a regression model?. I have household data and the nested independent variables are the main parent'...
0
votes
0answers
24 views

lmer applicable for nested unbalanced experimentel design?

My experimental design causes me some headache. It consists of three sites (A, B, C). Each site contains two treatments (Treat1 and Treat2). Obtained data (resp1 and resp2) were recorded at eight ...
0
votes
0answers
51 views

Choosing between nested and crossed design

I'm looking to use a linear mixed effects model. Each participant will rate a given item using 9 scales, 1 of which is the outcome variable. There are 6 items in total. The aim is to determine which ...
1
vote
1answer
33 views

Coding Nested Effect in gam() via Implicit Nesting

I'm trying to find the best specification of a nested mixed effects model using gam. I don't have an easy dataset to share, but simulate an example below - and have figure to help explain. Basically, ...
0
votes
0answers
22 views

Code help - a mixed model lmer- hierachy level 1 response variable and all Level 2 explanatary variables and an additional crossedrandom effect

I am running a mixed effect model using lmer in lme4. I was wondering if someone can tell me if this is the correct code to include Fixed effects that are recorded at a different level to the response ...
0
votes
0answers
8 views

Valdity of conditional interaction in R [duplicate]

Assume the following variables: ...
1
vote
1answer
17 views

Is there a smart way to combine Cox survival analysis on a nested experimental design?

I have a study that ran a fairly simple survival experiment (control group, treatmentA and treatmentB), but was run under 3 different temperature conditions (10C, 30C, 35C). So i have 9 groups of ...
0
votes
0answers
21 views

Mixed Model Analysis -> where to put my factor (fixed or random)?

Short Version: I treated 10 animal mothers/dams (5 control fluid, one 100µg/kg of a substance, 4 20µg/kg of a substance (i.e. controls = 0µg/kg) --> factor dose). I got 25 control offspring animals ...
0
votes
0answers
19 views

Can I still use logistic regression if some variables are not applied to all the observational units?

Some of the variables are questions that are not being asked to every single person in the questionaire depending on how they answered previous question(s). So would I still be able to use a logistic ...
1
vote
1answer
63 views

mixed-models, where to include random effect?

I'm running this in R. I have a dataset with some nested data. I have two land ownership categories and five road types nested within these landownerships. I will include a flow chart of my IVs so ...
1
vote
1answer
34 views

How to go about nested random effects if model yields convergence problems?

I've built a mixed effects logistic regression model using glmer(). I'm trying to measure clause transitivity (2 possibilities: transitive/intransitive) Each observation is a clause and clauses are ...
1
vote
1answer
20 views

How do you nest fixed effects in asreml-R?

I have 4 geographic populations which are nested within 2 population types (sympatry vs allopatry). Geographic population 1 and 2 is nested in population type 1 (allopatry), geographic population 3 ...
0
votes
0answers
14 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
37 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
29 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
45 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
30 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
33 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
12 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
87 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
104 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
83 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
156 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
96 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
22 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
46 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
33 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
46 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
35 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
29 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
430 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
44 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
55 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
56 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
34 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
23 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
12 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
1answer
44 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: ...

1
2 3 4 5
7