Skip to main content

All Questions

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

Does mediate() in r work with a multicategorical predictor?

My data is multilevel (multiple measures for each participant within each condition) with 3 conditions. DV = continuous; Mediator = continuous; IV = categorical (with 3 conditions: control, condition ...
stats.guy.412's user avatar
0 votes
0 answers
9 views

How to Test and Implement Industry and Year Fixed Effects vs. POLS in Panel Data Analysis?

I am new to econometric modelling. I am working with panel data spanning 8 years, including 155 units (REITs) distributed across 8 different industries. I aim to apply industry fixed effects and year ...
Caroline's user avatar
1 vote
2 answers
31 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 ...
Margarida Santos's user avatar
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 ...
Jack B's user avatar
  • 105
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 ...
Christopher Rounds's user avatar
8 votes
0 answers
82 views
+50

Why don't we typically worry about stationarity in panel data models with fixed effects?

Why don't we typically worry about stationarity in panel data models with fixed effects? In time series analysis, stationarity is often a crucial assumption. However, I've noticed that in applied ...
Daycent's user avatar
  • 239
1 vote
0 answers
51 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 ...
user442239's user avatar
6 votes
1 answer
127 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 ...
Richard Manser's user avatar
-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.
user451331's user avatar
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 $...
Linus's user avatar
  • 153
0 votes
0 answers
19 views

Differences-in-differences where the treatment affects the sensitivity to another variable

I have a case where agents respond to a variable $X$, such that $$y_t = \beta^{P,T} X_t + \varepsilon_t $$ $\beta^{P, T}$ can differ for the treated ($T = 1$) and untreated groups, and also the post-...
asmarcheva's user avatar
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 ...
Raheshi Knuwga's user avatar
3 votes
1 answer
50 views

Comparisions between REML and ML

I have two questions and really appreciate your answers. If Maximum Likelihood (ML) and Restricted Maximum Likelihood (REML) methods have the same fixed effects in a model, are the results from these ...
John's user avatar
  • 31
0 votes
0 answers
15 views

Panel regression model with market share as dependent variable

The data set consists of different variables from different banks during 6 years. I want to understand how these variables correlate with market share. The problem is that market share is a zero-sum ...
Sebastian Green Linstad's user avatar
0 votes
0 answers
23 views

Fixed effect in cross-border discontinuity approach: include both county fixed effect and state border fixed effect?

The cross-border discontinuity approach in concern uses state-wide events that are introduced into states in a staggered manner and involves county-level GDP as the dependent variable. I am wondering ...
jiop's user avatar
  • 1
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 ...
Linus's user avatar
  • 153
2 votes
1 answer
115 views

Difference-in-Difference with non-absorbing treatment

I have a difference-in-difference setup where treated units at one point in time can become control groups at a later point in time because there are multiple events that take place which are combined ...
n_arch's user avatar
  • 387
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 ...
teli95's user avatar
  • 1
2 votes
1 answer
30 views

Fixed Effects vs. Random Effects in Panel Data with a Time-Invariant Main Variable

I’m working with panel data and planning to use a fixed-effects model. However, my primary variable of interest is time-invariant, which I can't include in a fixed-effects model. I have two questions: ...
Eran's user avatar
  • 347
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 ...
Simon's user avatar
  • 1
1 vote
1 answer
41 views

How to explain the totally different results from subsample analysis and interaction analysis

I'm running a panel data regression. The main independent variable A is a treatment indicator. There is also another variable B that can split the sample into two online and offline observations. ...
Catherine Ma's user avatar
2 votes
1 answer
30 views

How can REs adjust for confounding if they are required to be uncorrelated with the FEs in the model?

How can random effects adjust for confounding if they are required to be uncorrelated with the fixed effects (explanatory variables) in the model? This question explains that including a variable in a ...
Michael Webb's user avatar
  • 2,280
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 ...
AUPW's user avatar
  • 1
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 ...
Robert Long's user avatar
  • 65.8k
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 ...
Linus's user avatar
  • 153
0 votes
0 answers
24 views

Can I perform an IV regression where the first stage is estimated without fixed effects, but the second stage includes fixed effects?

I wish to perform an IV regression where the first stage is estimated without fixed effects, but the second stage is estimated with fixed effects. Is this possible? Are there any obvious issues with ...
Anonymous's user avatar
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 ...
kangaroo123's user avatar
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} \...
Linus's user avatar
  • 153
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?...
niqp's user avatar
  • 43
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 ...
YuliaM's user avatar
  • 21
1 vote
1 answer
36 views

Why does the coefficient lose significance when using IV independent variable and also including district fixed effects?

I am trying to examine the effect of a 2018 flood shock on labor force participation of male and female. However, the flood could not only be attributed to heavy rainfall but to other factors like ...
jheelum sarkar's user avatar
0 votes
1 answer
34 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 ...
Simon Harmel's user avatar
1 vote
1 answer
57 views

Fixed effects vs. dummy variables in cross sectional data?

In panel data regression the term "fixed effects" is often used. In cross sectional data regression the term "dummy variables" is often used. Can I apply the concept of "fixed ...
tobias hassebrock's user avatar
1 vote
1 answer
93 views

Why Random effects and Fixed effects produce the same results?

I have conducted an experiment with 40 participants and 16 treatment combinations (balanced data with 640 data points). The 16 treatment combinations are based on 5 binary variables (the main effects ...
DominikH's user avatar
1 vote
1 answer
35 views

Year fixed effects vs dropping one year dummy

I am running regressions with year fixed effects, but one of my covariates is age, which is perfectly collinear with year. I’ve noticed that some papers include year dummies but drop one year to allow ...
chunguc1004's user avatar
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 ...
RSHAP's user avatar
  • 133
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. ...
Gabrielle's user avatar
1 vote
1 answer
56 views

Multi-level modelling?

In an instructional study, I have pretest and post-test measures of writing quality--no control condition. There are 110 students nested in 10 classes. I have pretest measures of spelling skill and ...
pkleinuwoca's user avatar
1 vote
1 answer
117 views

PanelOLS - R Squared

I'm using the PanelOLS package in Python to estimate a fixed-effects model and have noticed that it provides four different R-squared values: rsquared_within, ...
John's user avatar
  • 363
2 votes
1 answer
52 views

Inflated fixed effects in mixed-effects logistic regression model

I have a dataset with multiple observations per ID and a binary outcome. I am trying to fit a mixed-effects logistic regression, however, the fixed effect estimate of the intercept is extremely large ...
Jinglestar's user avatar
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 ...
YouLocalRUser's user avatar
3 votes
1 answer
48 views

Mixed Model: Translation from mathematical notation to R's lmer() - package: lmerTest

The following data should be generated and fitted to a mixed model (for further simulation studies): $y$: outcome of clinical study (effect of medication) indiv individuals = 20 repl replicate ...
m09s19's user avatar
  • 95
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 ...
YouLocalRUser's user avatar
2 votes
1 answer
106 views

Standard error clustering with few clusters

I am trying to estimate the causal effect of police presence on crime rates using county-level crime data from 166 counties across three states. The treatment is assigned at the state level. For my ...
Schwa97's user avatar
  • 71
1 vote
0 answers
57 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
2 votes
1 answer
39 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 ...
blakchat's user avatar
0 votes
0 answers
69 views

Difference between average predictions and interactions in marginal effects

I have a fixed efffects model where I am interested in the marginal effects of a categorical variable across time. The following is an example indicating what I am doing: ...
mehmety's user avatar
3 votes
1 answer
384 views

What is the mean of random effects?

Say, I have a mixed model: y = x + y + x:y + (1 + x * y | participant) What would be the mean of the random effects? Do they fluctuate around 0 or the fixed effects?...
rbeginner's user avatar
5 votes
2 answers
277 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 ...
Pashtun's user avatar
  • 315
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

1
2 3 4 5
62