Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
56 views

Error in lmerTest: The random-effects parameters and the residual variance (or scale parameter) are probably unidentifiable

I know that there have been similar questions before, but I dont still get it. I would like to estimate a multilevel model with repeated measures in R using the package “lmerTest”. The model ...
Ineluki's user avatar
  • 11
1 vote
0 answers
69 views

Bread freshness in bread basket, Multi-Level Analysis in R; 2 time points [closed]

This is my first attempt with multi-level analysis. My research question is; How does the freshness of different types of bread (6 level) within a bread basket, change over two time points (ranging 4-...
Jackson's user avatar
  • 11
1 vote
0 answers
107 views

Can I run multilevel mediation analyses with only two measurement occasions?

I have recently conducted a project which aims to examine whether Treatment (X) affected Anger (Y) via Heart Rate (M). Treatment was a between-subjects predictor with two levels, treatment 1 vs. ...
Gloria Ma's user avatar
0 votes
0 answers
55 views

Model Y~X using longitudinal data when X is measured less often than Y

I have the following data/setting: N persons assessed over time: different number of assessments; assessments at different time points Variable Y: measured ~50 times (3 times per day) Variable X: ...
MDSF's user avatar
  • 71
1 vote
1 answer
82 views

Multilevel model for questionnaire-like data

I am trying to create a multilevel model to investigate this question, but I can't come up with a solution (it's the first time I do multi-level modeling, and my statistics skills are rather ...
gabriele pallotti's user avatar
5 votes
2 answers
211 views

Choosing a linear model to take into account multiple observations from the same individuals

I’m looking at how temperature varies across age. Can you help me to choose the most appropriate linear model to this analysis? I’ve got multiple measures from 1 individual per age (13 in total), and ...
Mimi's user avatar
  • 63
3 votes
1 answer
59 views

A basic question regarding mixed-models (study design and code provided)

Maybe this is too simple a question, but imagine in a 3-wave, longitudinal study, two therapists both get to deliver the treatment and the control arms of the study ...
rnorouzian's user avatar
  • 4,056
2 votes
1 answer
80 views

Justifying terms taken as random at different levels in a mixed-model in R (study design and code provided)

I'm following up on this question. In short, imagine in a 3-wave, longitudinal study, two therapists both get to deliver the treatment and the control arms of the study to a different set of subjects (...
rnorouzian's user avatar
  • 4,056
2 votes
1 answer
99 views

Follow-up: Random & Crossed Random-Effects in Model Syntax in R (lme4)

I'm following up on this question and this answer. The answer mentions that without having a clear study design, understanding whether the random-effects specified in an ...
rnorouzian's user avatar
  • 4,056
3 votes
1 answer
107 views

Detecting Random & Crossed Random-Effects from Model Syntax in R (lme4)

I'm following-up on this question, and inspired by this great answer. I have 3 lme4 longitudinal mixed-models. Throughout, y is ...
rnorouzian's user avatar
  • 4,056
3 votes
1 answer
46 views

Mixed-effect coefficients at nonexistent levels

Suppose I recorded successes and failures for two different conditions organized into two different blocks. However, one of the conditions (Trt) was just in first ...
Vallo Varik's user avatar
2 votes
0 answers
446 views

Multi-level repeated-measures logistic regression in python/R

Accidentally posted this in stackoverflow, so reposting here. I have a repeated-measures design experiment. Each subject took part in some experimental conditions, each one associated with several ...
fffrost's user avatar
  • 207
4 votes
1 answer
1k views

singular covariance matrices = estimates of zero random-effects variance in a model with random-intercepts

I was wondering why for mixed-effects models that have degenerate or singular covariance matrices (some linear combinations of the random effects are estimated to having no variability) are said to ...
rnorouzian's user avatar
  • 4,056
4 votes
2 answers
311 views

Obtaining correlation between random-effects separately for 2 groups

I'm following up on this great answer. Suppose I have a cross-level interaction in my mixed-effects model below (ses*sector). My cluster-level predictor ...
rnorouzian's user avatar
  • 4,056
3 votes
1 answer
72 views

Modeling linear mixed regression in R - repeated measure and choosing random & fixed effects

Thank you for your time and help with this. I know the topic has been discussed many times before but I still cannot incorporate previous answers and suggestions fully into my study. My study is ...
Trong's user avatar
  • 31
1 vote
0 answers
118 views

Multi-level Latent Class Growth Curve Model of a double-repeated measures data structure

I have an interesting data structure I'm trying to analyze. I've decided that the best route is most likely using some type of LCGA, but am having trouble conceptualizing the model. Unfortunately, I'm ...
r_user's user avatar
  • 337
5 votes
1 answer
912 views

Between- and within-person level effects when using multilevel modelling for longitudinal data in R

I’m using nlme package in R for analysing longitudinal data. The aim is to understand if changes in need satisfaction (TNS) and ...
AF1402's user avatar
  • 53
5 votes
1 answer
1k views

Are time points nested in students or crossed in a longitudinal multi-level model

I often hear that in a longitudinal multi-level analysis, time points (as a fixed factor) are "nested" within students (e.g., just search the word $nest$ in this paper). However, this great ...
rnorouzian's user avatar
  • 4,056
1 vote
0 answers
51 views

Coefficients for all levels of a categorical factor unchanged in lmer after adding variables

I was sent over here from stack overflow here: https://stackoverflow.com/questions/62635123/coefficients-for-all-levels-of-a-categorical-factor-unchanged-in-lmer-after-addi (sorry for posting there ...
JFJ's user avatar
  • 11
0 votes
0 answers
153 views

Linear model for nested within subject design

I want to find a suitable linear model for my analysis. I have a nested experiment design. There are 2 conditions, 40 subjects, and 20 measurements within a subject. The condition is a within subject ...
Haliaetus's user avatar
  • 123
2 votes
1 answer
51 views

Nesting fixed effects in random effects

I'm fitting a multilevel model that has a random effect nested within a fixed effect: ...
andy_dorsey's user avatar
1 vote
0 answers
27 views

Modeling nestedness in terms of repeated measures AND site in lme4 in R?

I have $30$ students from $4$ schools (named: W, X, Y, Z). Two of the schools (X and Y) have received a Treatment (...
rnorouzian's user avatar
  • 4,056
6 votes
1 answer
400 views

Proper syntax for coding group level variables in mixed effect model using GLMER

I am running a multilevel log odds regression on a dataset that is at the individual level. Each individual belongs to a district, and there are both individual level variables (which vary by ...
guest's user avatar
  • 63
6 votes
2 answers
454 views

Multilevel regression model for nested data using "multilevel" and "lme4" R packages?

Hypothesis 1 Independent variable = Thermal inertia (TI) Dependent variable = Depth diameter ratio (d/D), Radii variation (RV) and Rim irregularity (RI). Hypothesis 2 Independent variable = Thermal ...
Farzana's user avatar
  • 83
1 vote
0 answers
34 views

How to encode Times within Days in Multi-level Mixed Model in R?

I have the following experiment: I tested 16 subjects on 4 different days with a (repeated) measurement every 20 minutes for a total of approximately 15 measurements/day. I have about 4 time varying-...
Vincent Nadon's user avatar
1 vote
1 answer
281 views

A non-linear regression model for within subject observations

I am trying to perform the equivalent of a repeated-measures ANOVA using data that have a non-linear relationship. There are two independent variables: Spacing between stimulus (10, 20, 35, 45, 60), ...
greenscientist's user avatar
3 votes
1 answer
283 views

Doing a multilevel model using lmer with participants nested in time - should time be a factor or not?

I am using function lmer() within package "lme4". Repeated-measures design with 4 time points, data is in long format. The time points are equidistant apart. Should I treat that variable as an integer,...
Craig K. Van Pay's user avatar
17 votes
1 answer
8k views

Compute partial $\eta^2$ for all fixed effects anovas from a lme4 model

Disclamer: I wasn't sure where to post this question: CV or SO, but eventually decided to try here first I've been asked by one of the reviewers to add effects sizes (preferably $\eta^2_p$ which is ...
blazej's user avatar
  • 557
1 vote
1 answer
144 views

Linear Mixed Models assistance

I’ll try and keep this as concise as possible. I have a dataset, and I am looking at how Fat mass (y) depends upon physical activity. I have data at years 8, 9,12, and 15, and I am looking to fit a ...
Oliver Mitchell's user avatar
1 vote
0 answers
38 views

How can I evaluate with R the interaction between a within-subject effect and a continuous variable at the subject level?

Scenario: 62 subjects did a selection task composed of 128 items, that can be divided into four conditions, because each item has a cue and a target (also other options but thats not of interest in ...
Walter Mandelbroth's user avatar
2 votes
1 answer
869 views

Multilevel Model in R with Repeated Measures Design, Fixed vs Random Effects? [closed]

I've been searching for a question that answers this for about a week on Cross Validated. Apologies if it's a repeat; I appreciate being pointed to an answer in a pre-existing question. My ...
quickestsilver's user avatar
2 votes
0 answers
64 views

Multi-level modeling with repeated measures condition using R

I'm trying to do stat. analysis for data with repeated measures The data is consists of: +--------------+---------+--------+----------+--------+ | Participants | Device | State | Activity | Values ...
Woo-hyeok Choi's user avatar
4 votes
1 answer
2k views

Three-level partially nested model

I am modeling change over time in group psychotherapy subjects using R and lme4. My data have the following structure: subject (id) time (code 1-10 for equally spaced repeated measures) outcome (for ...
Claudiu Papasteri's user avatar
0 votes
1 answer
628 views

Select and aggregate time series based on selection information of a second dataset

General problem: I have two datasets in r and I do not know how I can calculate information across groups of time series in one dataset based on selection-information of another dataset. The details: ...
Slyrs's user avatar
  • 3
2 votes
0 answers
316 views

Questions about mixed model design with repeated measures/nesting/incomplete design

I have data from a incomplete factorial experiment with repeated measures and potential nesting and am trying to figure out 1) the right way to design the mixed model to analyze the data, and 2) how ...
DirtStats's user avatar
  • 424
5 votes
1 answer
2k views

Multilevel model with nested repeated measures design

I am new with R and I am trying to use multilevel modelling for my dataset using the function glmer (for a binomial outcome variable) and ...
BobStat's user avatar
  • 51
2 votes
1 answer
504 views

HLM vs. repeated measures ANOVA -- sphericity concerns?

All, Say I have a 2 (between) x 4 (repeated measures) mixed factorial design. I was going to analyze it with ANOVA, but normality issues and sphericity concerns have made that not a good idea. Are ...
Tom Carpenter's user avatar
0 votes
1 answer
66 views

Multilevel modeling in R: Is it possible to have an “coherence/concordance variable” as outcome?

I am working on a paper about sexual coherence in women. Sexual coherence is defined as the relationship between subjective (SA) and genital sexual (GA) arousal. There is research that shows that this ...
user5317200's user avatar
1 vote
2 answers
619 views

specification of mixed effects model with two levels of repeated measures (in R)

My colleagues and I conducted a study of the effects of an experimental translocation on the movement and activity patterns of common brushtail possums in New Zealand. This involved first capturing 12 ...
Todd Dennis's user avatar
2 votes
0 answers
3k views

simulate multi-level data for repeated measurements

I am trying to simulate multi-level data for repeated measurements. My design includes just one within subjects factor, no between-subject factor. Consider the case of three treatment conditions with ...
beginneR's user avatar
  • 741
2 votes
1 answer
842 views

Multi-Level Model with two scores per level 2 unit - reasonable analysis?

I have an experimental design with attitudes toward one positive and one negative stimulus nested within individuals. I also have a continuous predictor at the person level (a personality construct). ...
Andreas's user avatar
  • 21
2 votes
0 answers
440 views

Multilevel modeling of experimental data with repeated measures in the same condition of factorial experiment

I'm struggling with modeling some experimental data using the lme4 package in R, and would appreciate input. My experimental design is as follows: subjects ...
roody's user avatar
  • 207