Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
882 views

Comparing top level group effects using a 3-level hierarchical regression

I would like to detect group effects (if any) along with statistical confidences. I have a hierarchical data set structured as follows: Drug Groups ...
1 vote
2 answers
30 views

Should I conduct a multilevel for this or another analysis? Need help

I have three sources of data (teachers, parents and students) assessing students, in three waves. I want to assess all and see the differences between moments but then I also want to use variables for ...
0 votes
0 answers
18 views

How to Forecast Sales for Sub-Locations Without Historical Proportion Data?

I have a time series dataset of total sales for a product in a store over time. This product is available in two different locations within the store: one stand near the checkout and another stand in ...
3 votes
1 answer
46 views

Calculate marginal effects for random effects model with two crossed random effects

I am trying to get effects marginal of two crossed random effects (using STAN or brms). I understand how to do it for a single random effect following McElreath's book and Kurtz's brms version of the ...
4 votes
2 answers
41 views

Accounting for non-independence and autocorrelation in HGAM

I am currently trying to fit a HGAM to model differences in daily activity patterns of fish in two treatments. Data were collected with high-resolution telemetry, and I currently have estimates of ...
-1 votes
0 answers
8 views

what happens when a network has low closeness centrality - what happens to nodes on the periphery [closed]

I have thirty-nine nodes with closeness centrality scores but I do not know what to say about the nodes on the periphery who do not have scores.
1 vote
2 answers
214 views

Mplus multilevel model with variables of different length

Let's say I have 4 variables on the within person level - xa, ya, xb, yb. xa and ya have each 100 trials, xb and yb have 200, and there are 150 subjects. I want to build the following multilevel ...
0 votes
0 answers
22 views

Derive gamma-parameters from preset R^2 in mixed models

For a simulation study in R, I want to select the effect sizes according to a preset $R^2$. Consider this two level random intercept mixed model, with one L1 predictor $X_{ij}$ and one L2 predictor $...
3 votes
1 answer
302 views

Should grand-mean centering happen in long or wide dataset?

This seems like a simple question but I've been having a hard time finding an answer. In a long daily diary dataset where each day has a row, the person mean for a given level-1 variable is repeated ...
1 vote
1 answer
151 views

Analyzing a likert-type item data with repeated measures with logistic ordinal regression

I'm analyzing some Likert-type items for my thesis. After a quick research, I figured out that instead of using a least-squares regression, a logit or probit ordinal regression model would be the best ...
0 votes
0 answers
9 views

Extracting individual level posterior class memebership probabilities in multilevel LCA

I am conducting a multilevel laten class analysis using the R package multilevLCA. I have fitted the model using multiple steps (i.e. determining optimal number of classes as well as clusters). I now ...
6 votes
1 answer
125 views

Is there a way to forecast by subgroup without forecasting each subgroup separately?

I am trying to find an appropriate model to forecast the number of applications received at the end of a recruitment cycle based on previous recruitment cycles and the number of applications received ...
2 votes
0 answers
148 views

Priors for strictly positive index or score types of variables

Is there a prior that's commonly used for "index" or "score" type variables that are user-defined as a weighted sum of a small number of variables (sometimes with pre-defined interaction contributions)...
4 votes
1 answer
2k views

Multilevel, hierarchical, and structural equation (SEM) models

Are all three of these just terms for the same idea or are there some critical differences? If so, how do they differ both in usage and principle?
1 vote
0 answers
44 views

Opposite results using Bayesian (STAN) vs Multilevel model (nlme). How is this possible?

My datasets contains the median wages and the cumulative installed wind-capacity for 4000 counties over a period of 20 years. The wages tend to rise over the period and the capacity tends to highly ...
0 votes
0 answers
24 views

Multilevel Model in R

I have data from a study in which 19 participants (9 males, 10 females) have each completed 4 jumping conditions (BW, 20, 25, 30) whilst I have measured joint level data for the hip, knee and ankle. I ...
0 votes
1 answer
42 views

CWC(M) in multilevel modeling

I am new to multilevel modeling and recently learned about CWC(M) by Zhang et al. (2009, https://journals.sagepub.com/doi/abs/10.1177/1094428108327450). I am running a multitlevel moderated mediation ...
2 votes
2 answers
989 views

Fixed effect turns insignificant when including random effect - Multilevel

I have a data set from a diary study in which stress was assessed for 30 days. I want to build multilevel regressions (level 1: measurements, level 2: persons) to investigate the effect of different ...
2 votes
1 answer
343 views

Recurrent event analysis: What approach to choose?

I am trying to examine if the interval between recurrent suicide episodes becomes shorter over the course of repeated incidents. My data is in long format with each participant occupying multiple rows ...
2 votes
0 answers
16 views

Which estimator to choose for meta-analysis^ REML or CR2 with Wild Bootstrap?

I am following the following book: https://bookdown.org/MathiasHarrer/Doing_Meta_Analysis_in_R/multilevel-ma.html I can't choose which estimator to choose: REML or CR2 with Wild Bootstrap. Or maybe ...
3 votes
1 answer
472 views

Unsupervised Learning on Multilevel/Multidimensional Data

I am working on a case-control study, where I for each individual have high dimensional data (like illustrated in the image). I would like to do both PCA analysis and Clustering on this data, but it ...
4 votes
1 answer
45 views

How to Simulate a Multilevel Predictor Variable with Both L1 and L2 Variance Components?

I'm working on simulating multilevel data where I have a predictor variable measured at Level 1 (L1), which has both L1 and L2 variance components. For example, I want to simulate a socio-economic ...
0 votes
0 answers
12 views

mice multilevel imputation: does specifying cluster variable ("-2" in predictor Matrix) without multilevel methods lead to cluster robust imputation?

In short: Are mice's imputations cluster robust when I only specify the cluster variable with "-2" in the predictor matrix but do not use multilevel models during imputation? For clustered ...
2 votes
1 answer
78 views

General formula for mixed models

I'm trying to wrap my head around the general formula of mixed models and how it relates to the system of equations I'm used to. The general formula read like this: $$\mathbf{Y_{j}}=\mathbf{X_{j} \...
4 votes
1 answer
655 views

GLMM with time-series covariance and binary response variable?

I have a binary response variable that was measured at irregular time intervals for a number of individuals. I want to fit a GLMM that accounts for the time-series covariance within individuals. I ...
1 vote
1 answer
797 views

Analytic Hierarchy Process (AHP) - factor weight score

As title mentioned, how to determine the 'scale of relative importance' point for factor weight score? Besides, I have read some example of ahp saying there are 1-9 point, 1-5 point (1,2,3,4,5) and ...
2 votes
1 answer
35 views

Reporting Hierarchical Regression Results in Abstract

I did a hierarchical regression test in a social science study looking at how two variables (A and B) and their interaction term can predict variable C. My mentor told me to write in the abstract that ...
1 vote
1 answer
55 views

Why do you always need to interact the covariates with the slope in mutlilevel models?

On a number of occassions, I have seen people remark that you should always interact your covariates with the with your slope when running multilevel models. That is, for example, you should not run ...
1 vote
0 answers
15 views

How to Set Up a Polynomial Multilevel Model

I have a modeling situation that I am not 100% sure how to approach. I have two independent variables, information and time, with time being a repeated measure. The dependent measure is difference. ...
0 votes
1 answer
33 views

Mediation models require a sigma matrix that is symmetric

I'm trying to fit the following reproducible mediation model called final. But I get an error saying: sigma must be a symmetric matrix Could you please advise how ...
3 votes
1 answer
61 views

How can we simulate correlated random variables that vary at different levels in a multilevel/mixed effects setting?

I am very familiar with generating correlated random variables from a multivariate normal distribution. This question is about doing that in a multilevel setting, where variables only vary at ...
6 votes
2 answers
1k views

What is the Joint Density Function of a Three-Level Mixed-Effects Model?

This is a follow-up question to a question I posted earlier. Obviously, maximum-likelihood estimation of mixed-effects models requires the joint density function. Let us assume a two-level mixed ...
4 votes
0 answers
138 views

Can we identify whether random effects are nested or crossed from a lme4 fit?

My colleagues and I are working on a suite of lmer post-estimation tools for a R package we are developing. One of the tools is an ICC function that would calculate ...
4 votes
1 answer
39 views

Outcome in mixed models - lower level or upper level?

I am learning about mixed models and I have a question regarding the outcomes that can be considered. If I have hierarchical data, do the outcomes that I can consider need to belong to the lower level?...
2 votes
1 answer
38 views

Seeking recommendations for R Packages for Multilevel Mediation Analysis with Binary Mediator

I am conducting a research study and aim to investigate the relationship between dietary habits (independent variable) and academic performance (dependent variable) of adolescents, with ...
8 votes
1 answer
471 views

Power analysis for three-level multilevel models in R

For a study in a social science setting - where huge number of participants are not easily available - I'm trying to do a power analysis for a three-level multilevel design. There are few packages ...
9 votes
1 answer
831 views

Comparing coefficients in multilevel models

Is it meaningful to compare the coefficients of two different predictors in multilevel model when the two are at different levels? Specifically I have two variables which measure the same construct ...
1 vote
1 answer
443 views

Mediation model with covariates and between and within-person mediators

I am pretty new to mediation in multilevel models. I want to run a 2-1-1 (and maybe a 2-2-1) mediation model in R. The dataset consists of 110 participants with three assessments per day. covariates = ...
1 vote
1 answer
26 views

Setting predictor variables with 3-levels in multilevel mode

I am working with a random intercept multilevel modeling. I want to predict general health based on survey data. The survey uses nested data set on three levels: individual, county, and state. I am ...
2 votes
1 answer
35 views

Experimental condition with multilevel model

I am working with a survey experiment. The data is set at three levels: individual, county, and state. The experimental condition was randomized at the individual level 1. That is, some individuals in ...
0 votes
1 answer
283 views

Is standardize always necessary when predictors having very different scales?

I am running a two-level mixed model, where individual economic status and GDP per capita (PPP) are predictors, and subjective well-being (SWB) is outcome. Two predictors (economic status, PPP) are ...
3 votes
2 answers
243 views

I have an insignificant beta weight of a predictor, which the only predictor in a step with significant R-square change and significant F-value

I am running a hierarchichal multiple linear regression with 4 steps containing theoretically justifyable variables: Outcome: pain rating Step 1: demographic variables (age, gender) Step 2: Pain ...
1 vote
1 answer
375 views

Multilevel binary logistic regression assumptions

I am struggling to work out the assumptions of hierarchical binary logistic regression, to test whether my data is suitable for such an analysis. My data is repeated measures (each participant ID ...
1 vote
0 answers
62 views

Prediction Intervals With Hierarchical Regression Model

I'm reading this data analysis book by Gelman and Hill and am trying to understand predictions with hierarchical models. On page 273 they are demonstrating making new predictions for an already ...
1 vote
1 answer
263 views

Why does my Gibbs sampler find two optimals?

[EDITED] I am using a Gibbs Sampler to find a Bayesian optimization to my multilevel (hierarchical) model (2 levels). However, when I run multiple chains (each chain having different starting values) ...
3 votes
0 answers
497 views

Random and Repeated in SPSS mixed model

I have a data set with 4 time points and around 200 'subjects' (in my case local authorities). I want to look at predictors of my dependent variable and changes over time in my dependent variable. I ...
3 votes
1 answer
1k views

Within-subject centering of a repeatedly measured dichotomous variable in a multilevel model?

I'm currently working on a nested data set consisting of 100 subjects which answered several questions at home on five consecutive days (ecological momentary assessment). Among them, they were asked ...
2 votes
1 answer
323 views

fixed effects model with upper level predictors and cross-sectional data

I am using cross-sectional data with the following OLS model: $$ Y_{(i,j)} = \beta_{(0)} + \beta X_{(i)} + \beta X_{(i,j)} + \beta fixed\; effects_{(j-1)} + \varepsilon_{i,j} $$ where $i$ stands for ...
2 votes
1 answer
1k views

Fixed effects contrasts in multilevel model

I'have fitted a mixed model in SPSS with fixed and random effects, and I would like to know what do the Fixed effects contrasts (type III) mean... In my model they are significant (e.g F=23.9; p=.012),...
1 vote
3 answers
443 views

Comparing variance in random effects: crossed random effects or different models?

I am interested in making sure that a predictor I include into a regression actually explains the type of variance it should. To be more specific: in an experiment in which a number of people sees a ...

1
2 3 4 5
39