Questions tagged [fixed-effects-model]

In biostatistics, fixed-effects may mean population-average effects. In econometrics, fixed-effects may represent the observed quantities in terms of explanatory variables that are treated as if the quantities were non-random.

Filter by
Sorted by
Tagged with
287
votes
9answers
542k views

What is the difference between fixed effect, random effect and mixed effect models?

In simple terms, how would you explain (perhaps with simple examples) the difference between fixed effect, random effect and mixed effect models?
167
votes
3answers
88k views

R's lmer cheat sheet

There's a lot of discussion going on on this forum about the proper way to specify various hierarchical models using lmer. I thought it would be great to have all ...
51
votes
2answers
41k views

What is a difference between random effects-, fixed effects- and marginal model?

I am trying to expand my knowledge of statistics. I come from a physical sciences background with a "recipe based" approach to statistical testing, where we say is it continuous, is it normally ...
15
votes
4answers
9k views

Fixed effect vs random effect when all possibilities are included in a mixed effects model

In a mixed effects model the recommendation is to use a fixed effect to estimate a parameter if all possible levels are included (e.g., both males and females). It is further recommended to use a ...
19
votes
2answers
31k views

REML or ML to compare two mixed effects models with differing fixed effects, but with the same random effect?

Background: Note: My dataset and r-code are included below text I wish to use AIC to compare two mixed effects models generated using the lme4 package in R. Each model has one fixed effect and one ...
15
votes
4answers
19k views

How to keep time invariant variables in a fixed effects model

I have data on a large Italian firm's employees over ten years and I would like to see how the gender gap in male-female earnings has changed over time. For this purpose I run pooled OLS: $$ y_{it} = ...
26
votes
6answers
5k views

What is the mathematical difference between random- and fixed-effects?

I have found a lot on the internet regarding the interpretation of random- and fixed-effects. However I could not get a source pinning down the following: What is the mathematical difference between ...
7
votes
3answers
16k views

Difference between fixed effects dummies and fixed effects estimator?

I started to read about panel regression models. However, I am a bit confused about the different model specifications in the fixed effects model: Does a fixed effects panel regression always mean ...
34
votes
4answers
41k views

Standard error clustering in R (either manually or in plm)

I am trying to understand standard error "clustering" and how to execute in R (it is trivial in Stata). In R I have been unsuccessful using either plm or writing my ...
14
votes
3answers
5k views

Concepts behind fixed/random effects models

Can someone help me to understand fixed/random effect models? You may either explain in your own way if you have digested these concepts or direct me to the resource (book, notes, website) with ...
6
votes
3answers
5k views

panel data - within-group estimate - individual fixed effects retrieved

I am analyzing panel data. First, I have to decide whether to use a random or fixed effect estimator. The Hausman test suggests to use the fixed effect estimator (also named within group estimator). ...
8
votes
1answer
3k views

Interpreta​tion of main effect when interactio​n term is significan​t (ex. lme)

As an example I use Pinheiro, J. C. & Bates, D. M. 2000. Mixed-effects models in S and S-PLUS. Springer, New York. page 225. Rats whose body mass has been measured are fed by 3 different diets ...
6
votes
1answer
4k views

Hausman test: the larger the sample the more significant the Hausman test statistic?

Hausman test statistic formula: $$ H=(\beta_{f}-\beta_{r})' \left[\mathrm{Cov}(\beta_{f})-\mathrm{Cov}(\beta_{r})\right]^{-1}(\beta_{f}-\beta_{r} ) $$ where $\beta_{f}$ is the beta of fixed effects ...
24
votes
5answers
3k views

What is the upside of treating a factor as random in a mixed model?

I have a problem embracing the benefits of labeling a model factor as random for a few reasons. To me it appears like in almost all cases the optimal solution is to treat all of the factors as fixed. ...
8
votes
1answer
22k views

difference-in-differences with fixed effects

I have two questions related to having fixed effects in the DD model. I have a treatment that occurs at different times (e.g., 2001,2005, etc.). I want to fit a DD model, so I standardize the ...
18
votes
2answers
3k views

Big disagreement in the slope estimate when groups are treated as random vs. fixed in a mixed model

I understand that we use random effects (or mixed effects) models when we believe that some model parameter(s) vary randomly across some grouping factor. I have a desire to fit a model where the ...
9
votes
5answers
4k views

Bootstrapping hierarchical/multilevel data (resampling clusters)

I am producing a script for creating bootstrap samples from the cats dataset (from the -MASS- package). Following the Davidson ...
15
votes
4answers
576 views

How can I improve my analysis of the effects of reputation on voting?

Recently I had done some analysis of the effects of reputation on upvotes (see the blog-post), and subsequently I had a few questions about possibly more enlightening (or more appropriate) analysis ...
3
votes
1answer
917 views

Use of fixed effects and random effects

When can we do a linear regression without fixed or random effects and when do we need to use those in the regression analysis? I have tried studying a lot but have got only a vague idea. I would be ...
5
votes
1answer
13k views

Difference between fixed effects models in R (plm) and Stata (xtreg)

I'm trying to re-create an analysis done using Stata function xtreg (though I don't have the code) with ...
15
votes
1answer
14k views

Incidental parameter problem

I always struggle to get the true essence of the incidental parameter problem. I read in several occasions that the fixed effects estimators of nonlinear panel data models can be severely biased ...
11
votes
2answers
15k views

Why do random effect models require the effects to be uncorrelated with the input variables, while fixed effect models allow correlation?

From Wikipedia There are two common assumptions made about the individual specific effect, the random effects assumption and the fixed effects assumption. The random effects assumption (made in a ...
5
votes
2answers
3k views

Interaction suppresses the main effect? How to interpret it?

I have a simple model without interaction and it stated significant effect for all the explanatory variables (continuous variable rok and categorical variables obdobi (levels hn and nehn) and kraj: <...
7
votes
2answers
3k views

Zero-inflated two-part models for semi-continuous data

I am trying to study predictors of companies' pollution output of some specific chemicals. The data I am using have many 0's (i.e., the company did not pollute at all with those chemicals) and then ...
2
votes
1answer
522 views

Is subtracting individual means in pre-processing an appropriate alternative to dummy variables for fixed effects panel data estimation?

Is subtracting individuals means during pre-processing of panel data exactly equivalent to including dummy variables for fixed effects estimation? If not, what are the differences, and is there some ...
5
votes
1answer
2k views

Presenting marginal effects of logit with fixed effects

I have a traditional logit model with a dichotomous dependent variable and several independent variables. One of the IVs is categorical and in my R code, I treat it as a factor. In the past, I've ...
1
vote
1answer
428 views

Is adding a time dummy the same as estimating by within-time fixed effects?

Is it the same to estimate the time fixed effect by the within estimator and by simply adding time dummies in my regression equation? Why would that be the case mathematically? edit $$\text{Y}_{...
3
votes
1answer
619 views

Does random effect always produce the same result as fixed effect?

I have two models - one is including a categorical covariate as a fixed effect, the other includes it as a random effect: ...
0
votes
0answers
47 views

Difference in intuition: threeway fixed effects vs interaction of two of the effects

my question is a follow-up on a previous question of mine: What is the difference in using, as I said in the previous link, I have the possibility of using either area $(a)$, time $(t)$ and sector $(...
0
votes
1answer
195 views

Is this logit model a multilevel model, and what is the correct way to model it?

I am analyzing a sample of about 6000 actions carried out by about 500 multinational companies in about 80 countries during a 6 year period. Actions are carried out randomly, and are not longitudinal ...
7
votes
1answer
17k views

How do I interpret a “difference-in-differences” model with continuous treatment?

How do I interpret the ATE coefficient (i.e., the post-treatment indicator interacted with the continuous variable)? Does it make sense? Should I break it down into subgroups and just run a fixed ...
14
votes
1answer
11k views

When is it necessary to include the lag of the dependent variable in a regression model and which lag?

The data we want to use as dependent variable looks like this (it is count data). We fear that since it has a cyclic component and trend structure the regression turns out to be biased somehow. We ...
8
votes
1answer
47k views

Panel Data: Pooled OLS vs. RE vs. FE Effects

We had some discussion about the usefullness of Pooled-OLS and RE Estimators compared to FE. So as far as I can tell, the Pooled OLS estimation is simply an OLS technique run on Panel data. Therefore ...
4
votes
2answers
58k views

Using pooled OLS when running a model with panel data?

How bad is it to use pooled OLS instead of fixed effects when you have 7 years of panel data? From what I have understood, the risk is that the coefficients will be correlated with the error term, ...
14
votes
3answers
4k views

Removing factors from a 3-way ANOVA table

In a recent paper, I fitted a three-way fixed effects models. Since one of the factors wasn't significant (p > 0.1), I removed it and refitted the model with two fixed effects and an interaction. I'...
1
vote
1answer
454 views

Fixed/Random effects model

I am trying to understand/visualize it in my head how fixed/random effects models work. Can someone explain how can I infer something about the population from which I drew the sample with random ...
12
votes
3answers
4k views

Is the Mundlak fixed effects procedure applicable for logistic regression with dummies?

I have a dataset with 8000 clusters and 4 million observations. Unfortunately my statistical software, Stata, runs rather slowly when using its panel data function for logistic regression: ...
3
votes
1answer
2k views

Two-way repeated measures linear mixed model

This is my first endeavor into linear mixed models, and I haven't found an example that uses a fully repeated measures design, so I was hoping that I could get some help. I have a dataset that looks ...
7
votes
1answer
2k views

Dealing with hierarchical (panel, multi-level) data and fixed effects in LASSO?

The question pretty much explains itself. When running a Lasso regression on a lot of indexed (say by time and location) explanatory variables, is it best practice to transform all data using a ...
3
votes
2answers
9k views

What is the correct way to deal with multiple fixed effects when dealing with a large number of observations in panel data regression?

I don't have much experience with panel data so I apologize in advance if this sounds ridiculous. Let's say that I am trying to control for individual and temporal fixed effects when running a panel ...
6
votes
1answer
5k views

cluster-robust standard errors are smaller than unclustered ones in fgls with cluster fixed effects

I'm currently working on some experimental data. The experimental design consists of two treatments. In each treatment, 20 subjects are randomly matched in pairs and participate to a simple game. The ...
6
votes
2answers
2k views

Why does a fixed-effect OLS need unique time elements?

The plm function of the plm library in R is giving me grief over having duplicate time-id couples, even when I'm running a model ...
5
votes
1answer
21k views

Difference between one-way and two-way fixed effects, and their estimation

Consider a basic linear unobserved effect panel data model, e.g.: $$Y_{it}=\beta x'_{it}+c_i+\lambda_t+u_{it}, \quad t=1,\dots,T$$ where the vector $x_{it}$ contains the independent variables and $u_{...
3
votes
1answer
11k views

Logistic regression: fixed effects for firms, countries & years

I am trying to use logistic regression on a sample of 20,000+ firms across 50+ countries, from 2000-2010. Do I need to use logistic regression with fixed effects for year and firm + dummy variables ...
1
vote
0answers
2k views

Compare coefficients across groups in panel data set

I want to test for differences in (regression) coefficients across two groups. I understand, that this is possible by including interaction terms and performing a Chow-Test. But what do you do if ...
1
vote
1answer
2k views

Random Effects Design Matrix

I'm trying to move away from ANOVA/t-tests and get a better understanding of GLMs. I am doing my statistical analysis in R using function lm (only fixed effects) and lmer (+ random effects). I also ...
7
votes
1answer
25k views

First differences vs. fixed effects model for panel data

I'm aware of the fact that first differences and fixed effects are both designed for the same solution -- removing unobserved unit-level effects. However, I'm unclear on what happens when you include ...
3
votes
2answers
1k views

Random effects vs fixed effects for analysis of panel data (econometrics)

My dataset is following: 1000 firms, time period of 10 years, 20 countries 20, 15 industries. I declare in STATA: xtset firmid year I want to control for the ...
3
votes
1answer
8k views

Computing the predicted value from a panel data model with the plm R package

I am estimating the following panel data twoways fixed effect model: y = alfa*y.lag + beta1*z + beta2*z^2 + theta*id + gamma*t (1) where ...
3
votes
1answer
3k views

Interpret effect of adding random effects to ordinal regression (R - ordinal package - clmm)

I know there are already lots of questions around this topic (especially this one and this one) but I haven't really seen anything that directly helps me (It will be obvious I'm not a great ...