Skip to main content

Questions tagged [random-intercepts]

Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

LMM: effect of day may differ between subjects - fixed or random effect?

We tested 12 animals in a test with three phases (a/b/c) in three conditions (C1/C2/C3) on nine days, i.e. every animal experienced each condition three times. On each day, four animals were tested in ...
bos's user avatar
  • 13
2 votes
1 answer
58 views

Random intercept model equation with two-way interaction and extra control measure

I'm trying to figure out how I should express the following model in an equation. The outcome is repeated 30 times within each individual, so 30 trials per individual of a certain measure (trials). ...
RmyjuloR's user avatar
  • 165
1 vote
0 answers
31 views

Intercept calibration in logistic hierarchical regression model

i am following Debray et al. 2013 (A framework for developing, implementing, and evaluating clinical prediction models in an individual participant data meta-analysis) to estimate a risk prediction ...
hanshansen's user avatar
5 votes
2 answers
247 views

Estimate random effect variance for power analysis in multilevel model

Is there a general convention on what variance to expect for a random intercept in a multilevel model? I need to provide an estimate for the power analysis. It is a within-subjects design. Thanks!
Willy's user avatar
  • 53
4 votes
1 answer
84 views

Random intercept

I have the following model, how do I add a random intercept(no random effects included yet): ...
Sandra Sørensen's user avatar
1 vote
2 answers
1k views

Random Intercept vs. Random Slope Linear Mixed Effects Model with Nested Data

I have read a lot about random intercepts vs. random slopes in linear mixed effects (LME) models, but I am confused on how to think about them when it comes to nested data. I have looked at other ...
rhingo3's user avatar
  • 41
3 votes
1 answer
48 views

How can I fit a least absolute deviation model with random intercepts?

I have some data and a model formulation that I believe describes the data generating process. The model looks like this $$y_{i,t} = \beta_1x_{i,t} + \beta_2x_{i,t-1}+\alpha_t+\epsilon_{i,t}$$ where $\...
Chechy Levas's user avatar
  • 1,275
3 votes
0 answers
68 views

Variance of conditional mean estimates obtained from a mixed model/multilevel model

Assuming I have observations nested in groups with varying (true) means. Using a random intercepts mixed model (multilevel model), I can estimate the variance of these random intercepts. Additionally, ...
LJ Beinhauer's user avatar
4 votes
1 answer
139 views

Does adding a random intercept for subject address confounding variables within subjects (e.g. sex or age)?

Let's say I am interested in identifying associations between a blood protein and disease activity, but I have multiple measurements per subject. Based on a literature review, I expect sex differences ...
HarD's user avatar
  • 237
0 votes
0 answers
50 views

Why do my random effects estimates not match the data?

I'm running a logistic regression model in R using glmer() from lme4. I only want to get the random effects estimates, so I have an intercept-only model with just ...
DoggedGeddog's user avatar
2 votes
1 answer
186 views

Add covariates to the random-intercept mixed effect model

I'm working on a study where I want to explore whether two covariates, let's call them C and D, can help explain the differences we observe in our dependent variable, which we'll call B (depression ...
Cornelia Cai's user avatar
0 votes
1 answer
42 views

RI-CLPM - Testing whether between and within effects significantly differ

I am currently using a random intercept cross-lagged panel model (RI-CLPM; Hamaker, 2015) to assess between and within effects. For the same variables, we find a negative relation at the between level ...
Wout's user avatar
  • 1
3 votes
0 answers
21 views

In my mixed effects model, are the confounded MCMC chains between my random intercepts and my global intercept problematic?

I implemented an MCMC algorithm for the following regression model: $$y_i \sim N(\mathbf{x}_i'\boldsymbol{\beta} + \eta(\mathbf{s}_i) + \theta_i,\sigma^2),$$ $$\boldsymbol{\beta}\sim N(\boldsymbol{0},...
Ron Snow's user avatar
  • 2,073