All Questions
Tagged with multilevel or multilevel-analysis
1,926 questions
2
votes
2
answers
89
views
Mixed models - Intuition of correlated discrete random effects
I'm looking into this source and I'm trying to understand what does it mean to have "positive correlation between the random effects when the variables aren't continuous"
In the link there ...
2
votes
0
answers
45
views
Which Variables Should Be Centered in a Multilevel Model?
When only one variable in a multilevel model is of interest (all of the other variables are treated as nuisance parameters), and we wish to estimate between- and within-effects, should we only center ...
2
votes
1
answer
54
views
Why do top-down approaches produce biased coherent forecasts?
The context is forecasting hierarchical time series. Section 10.4 of "Forecasting: Principles and Practice" (2nd edition) by Hyndman & Atahnasopoulos states:
One disadvantage of all top-...
2
votes
1
answer
100
views
Three-tier Multi-Level Model: violation of the assumptions of normality and heteroscedasticity
I am working with educational data. To do so, I am using the classic three-level hierarchical linear model (student, class and school).
I am using the R software lmer package and the stata software.
...
1
vote
0
answers
81
views
Moderation in linear mixed model
I ran a Linear Mixed Model in R with 2 centered predictors and a Group variable.
fit1a <- lmer(DV ~ Predictor1*Group + Predictor2*Group + (1|...), data)
One of ...
0
votes
0
answers
26
views
zero-inflation analysis multilevel for continuos data (not count data)
I was trying to fit a multilevel model, but I discovered that my dependent variable is highly skewed and zero-inflated.
Individuals report 5 times a day for 7 days their level of paranoia and the ...
2
votes
1
answer
35
views
Twolevel multgroup model in Mplus [closed]
I would like to use Mplus to run a two-level multigroup model with two groups (e.g. example 9.11 in the user guide).
My question: I have an independent variable X that varies in group A only between ...
0
votes
1
answer
44
views
Multi-level Linear Mixed Model: Sampling and Power Issues
I am struggling to find a proper model for my analysis, and on top of this, I have some questions about the number of observations and the resulting power of the model.
Experiment
I ran a reaction ...
2
votes
0
answers
38
views
How to appropriately model complex structured, multivariate data [closed]
This is an extension of this question I posted earlier. The general data I introduced there is the same.
The structure/nature of my data is:
y ... my response variable of interest
x ... my main ...
1
vote
1
answer
41
views
Equivalence of Fixed Effects in Contextual Models with and without Random Slopes
When estimating "contextual models" (i.e., models that contain level-1 predictors as well as their cluster means on level-2), the estimation of the fixed effects should be unaffected by the ...
1
vote
2
answers
387
views
Running a multilevel model without level-1 predictors
Is it acceptable (publishable) to run a multilevel model with only level-2 and level-3 predictors? Example: Looking only at the effect of school resources, size or location, and at the district level (...
5
votes
2
answers
276
views
Clarification on Random Effects Structure in Linear Mixed Models in R
I am using linear mixed models to analyze a dataset with a hierarchical structure, where measurements over time (level 1) are clustered within individuals (level 2), and individuals are clustered ...
1
vote
1
answer
43
views
How to analyze between-group differences in within-group variances over time in a 3-level model?
The data I am using is collected within the physical fitness surveillance program in schools. In these schools, either no intervention, healthy lifestyle intervention, healthy schools network ...
1
vote
0
answers
32
views
Inconsistent posterior from hierarchical survival model
I asked about this question on Stan forum but no one replied so dual posting here. I'd really appreciate some insight, as I'm completely stuck.
I’m trying to do hierarchical survival modeling using ...
5
votes
1
answer
1k
views
$R^2$ for mixed models = ICC?
I will be referring here to Nakagawa and Schielzeth (2013). As those authors state, $R^2$ for OLS regression could be defined as follows:
$$R^2 = \frac{\sum^n_{i=1}(\bar{y} - \hat{y_i})^2}{\sum^n_{i=...
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!
2
votes
1
answer
133
views
Why estimated population variance differs from estimated $\sigma^2 + \tau^2$ in this random effects ANOVA?
A random effects ANOVA model is typically written as
$Y_{ij} = \gamma_{00} + u_{0j} + \epsilon_{ij}$
. and the total variance of the outcome variable is decomposed into
$var(Y_{ij}) = \tau^2 + \sigma^...
3
votes
0
answers
395
views
Best approach for (weakly) informative priors and variable-scaling in hierarchical logistic regression? [closed]
I am a PhD student using logistic regression to investigate mental health epidemiology. Since participants in my cohort study have a diagnosis or not (coded 1 or 0) - I'm using logistic regression to ...
1
vote
2
answers
32
views
Incorporating neighboring years in multilevel model, estimated in Stan using brms
I am estimating a multilevel model in Stan, using the brms package. Specifically, I am estimating a model of the following form:
m1 <- brm(y ~ 1 + (1 | year))
...
0
votes
0
answers
24
views
3 way interaction, residual plot showing clustering across fitted values, do I need to account for grouping in a different way?
I have created a model with a three way interaction, analyzing how taste of bread (fr2) decreases over time (time2), and how skill of the baker (skill2) impacts longevity of taste, across different ...
2
votes
0
answers
34
views
Centering two level-1 variables to create interaction term before multilevel analyses? Thank you [duplicate]
I like to ask for some kind help from the readers here. I have a specific question on creating the interaction term from two level-1 variables before even running the multilevel analyses. Do you
mean-...
2
votes
0
answers
404
views
Multilevel/ Mixed Model / HLM Centering Interactions Level 1 and Level 2 Cross-Level
I am having some trouble with the literature on the correct model specification for my question.
Here is the setup:
I have a multilevel model with a variety of variables at level 1 and a single level ...
1
vote
1
answer
98
views
Effect size/power analysis of categorical variable in multilevel model
How to decide the effect size of a categorical variable with multiple levels (e.g., three or four) in MLM? And how to calculate the power of such variables using a simulation (or other) approach?
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-...
2
votes
1
answer
67
views
Random slopes vs including an interaction between grouping factor and focal predictor
A person runs the following random slopes model where ses is the focal predictor, and schcode is the grouping factor (and so not mentioned in the model equation)
$Y_{ij} = \gamma_{00} + \gamma_{01}\...
3
votes
1
answer
42
views
How to analyze time varying covariate random effect
I am running a multilevel growth curve model to examine predictors of social anhedonia (SA) trajectory through ages 12, 15 and 18. SA is a continuous numeric variable. The age variable (Index1) has ...
7
votes
2
answers
10k
views
Should a Hausman test be used to decide between fixed vs. random effects?
I was taught that a Hausman test should be used in multilevel modeling in order to check whether random effects can be used.
However, I have now stumbled over several sources stating that the Hausman ...
4
votes
1
answer
93
views
Advice on optimal random-effects structure for not fully crossed repeated-measures design?
I have a study that is designed such that it seems to straddle a within- and between-subject design. I posted about this previously here, but at that stage I was hoping for a simple ANOVA-like ...
0
votes
1
answer
72
views
Kruskal-Wallis with unbalanced classes and assumption of normality
Edited
I want to better understand:
how to appropriately approach a significant test with largely unbalanced classes
appreciate the "story" that a statistical tests support
Situation:
I ...
1
vote
0
answers
54
views
Multi-level Model and Multi-level Data
I have a question about multi-level models with multi-level survey data. I am working with survey data that has a two-stage sampling design with primary sampling units defined as schools randomly ...
0
votes
0
answers
30
views
Is it appropriate to calculate odds ratios from random effects glmm output?
Is it appropriate to calculate odds ratios from random effects glmm output?
about the data:
grown (binary): whether flower grows over a certain height (TRUE/FALSE)...
0
votes
0
answers
43
views
Factor Scores explain less Variance than Item means in a multilevel cfa
I conducted a multilevel confirmatory factor analysis (CFA) in lavaan on repeated measures questionnaire data (satisfaction with travel scale). 42 participants had ...
3
votes
1
answer
111
views
How to fit random slope hierarchical model as SEM with OpenMx in R?
I've been exploring the OpenMx Package in R in hopes to fit multilevel path analysis and I can't figure out how to add random slope.
This is the model I am trying to fit:
$$
Y_{ij} = \beta_{0j} + \...
5
votes
1
answer
75
views
How to translate hierarchical linear model random effects into SEM path diagram?
I've been struggling with translating random slope and intercept and random variables and understanding them as latent variables in the pursuit of path models.
For example here is a random slope and ...
5
votes
1
answer
483
views
How to do classification in mixed effect models in python. My data is nested into groups with binary outcome
Lets say I have 10 sellers (S1-S10). Each seller has 7 buyers which are different for each seller (B1-B7 for S1, B11-B17 for S2 and so on). Each Seller buyer combination has a product category (P1, P2....
0
votes
0
answers
47
views
Multilevel Modelling with Crossed and Nested Factors in R
I am trying to create a model to determine the effects of Stations and Circuits (and any interaction) on students scores in an OSCE exam, using the lmer function in R.
I have 3 factors: circuit $\beta$...
1
vote
1
answer
55
views
Understanding lme4 output: Unexpected different results [closed]
I am teaching myself how to do multi-level models (MLMs) in R. I have two models, which I think should give me the same information (with some omissions in M2), but they are not completely the same. I ...
0
votes
1
answer
468
views
Correcting for multiple comparisons in interaction
I have 13 separate hierarchical linear regression models- all models have an interaction term (group by variable of interest) entered as the last step. Since I have 3 dummy coded groups, I have 2 p-...
3
votes
1
answer
125
views
Multi-level models and random effects: Still confused
I know that there are many posts concerning explanations of multi-level models, random effects, fixed effects and so on. But after having read through them, and after watching this youtube series by ...
0
votes
0
answers
23
views
What type of statistical analysis is recommended for examining variations in risk and protective factors across male and female offending groups
I want to understand how risk and protective factors vary across separate male and female offending groups I have classified them into using group-based trajectory modelling (GBTM).
Using GBTM, I ...
2
votes
1
answer
28
views
Should a Better User Engagement Model Keep Outperforming Old Models Across Time?
Context
Let's say we are talking about a machine learning model that governs some user interaction (e.g. pricing model, recommendation model etc.) on an app. Let's say model v1 is champion (in ...
0
votes
0
answers
38
views
Multilevel segmented regression
I have some data on the proportion of healthcare workers that are vaccinated against disease X each year in several healthcare institutions. I want to evaluate the impact of two large-scale ...
2
votes
0
answers
33
views
How to fit a GLMM with multiple levels of nesting
I have some data I am struggling to process at the moment. I have landed on using generalized linear mixed models (GLMMs), but I am having a very hard time wrapping my head around it.
I have a large ...
3
votes
1
answer
211
views
Using participant-specific slopes in correlations and dependent variables in subsequent models
I have been asked to review a paper where the authors have intensive longitudinal data (several observations per day for several days). So they have lots of observations per participant. They do three ...
1
vote
1
answer
47
views
Multi Level Mixed Models
I have a model in which I collected information from 3 different farms, and on each farm in several different weeks. The weeks are not exactly the same, so week 1 of Farm 1 is not the same moment as ...
0
votes
1
answer
32
views
AUC comparison with Delong when i.i.d is broken due to clustered data
I am asked to compare two AUC ROCs and output confidence interval for both.
Delong method allows (and also Fast Delong) to have a stronger test than usual bootstrapping method.
The data I am working ...
0
votes
0
answers
19
views
Is there some sort of multilevel KNN/ML model I can use to figure out which users will buy specific products?
I am wondering if there is some sort of multilevel model that I can use to identify likely buyers of specific products or create a lookalike audience.
The issue is that I have 1000s of products and ...
0
votes
0
answers
46
views
Multilevel-Regression Contrasts and Multiple Comparisons
My experiment looks roughly something like this:
5 Different biological replicates were tested with 4 Conditions (incl. Control) and 3 Time points (1h, 6h, 24h). My samples are nested within ...
1
vote
0
answers
31
views
Nakagawa's R2 for a two-level model with two weight variables
I am trying to get Nakagawa's conditional R2 in R, for a two level model with two weight variables. The problem I am facing is however that only a limited amount of packages allows to estimate ...
3
votes
1
answer
142
views
In multilevel logistic regression, can pooled data return significant variables when the same variables in stratified data are not significant?
I have analyzed some secondary data that relates to Plasmodium infection at three forest sites: inside the forest, at the forest fringe, and outside the forest.
The outcome variable is infection with ...