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.

966 questions
372
votes
9 answers

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?
Andrew
  • 5,478
  • 5
  • 21
  • 21
197
votes
3 answers

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 the information in one place. A couple of questions to start: How to specify multiple…
56
votes
2 answers

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 distributed -- OLS regression. In my reading I have…
N26
  • 1,705
  • 3
  • 18
  • 22
40
votes
4 answers

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 own function. I'll use the diamonds data from the ggplot2 package. I can do fixed…
33
votes
3 answers

When to use fixed effects vs using cluster SEs?

Suppose you have a single cross-section of data where individuals are located within groups (e.g. students within schools) and you wish to estimate a model of the form Y_i = a + B*X_i where X is a vector of individual level characteristics and a a…
28
votes
5 answers

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 random- and fixed-effects? By that I mean the…
28
votes
2 answers

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

Background: Note: My data set 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 random effect. The fixed effect differs between…
27
votes
5 answers

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. First, the distinction of fixed vs random is…
24
votes
1 answer

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 because of the "well-known" incidental parameter…
emeryville
  • 628
  • 1
  • 4
  • 17
19
votes
2 answers

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 response has been normalized and centered (not…
17
votes
5 answers

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 random effect to account for a variable if the…
16
votes
4 answers

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} = X'_{it}\beta + \delta {\rm male}_i +…
16
votes
1 answer

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 will use a negative binomial regression in case it…
15
votes
3 answers

Removing factors from a 3-way ANOVA table

In a recent paper, I fitted a three-way fixed effects model. 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've just had referees comments back, to quote: That…
csgillespie
  • 11,849
  • 9
  • 56
  • 85
15
votes
3 answers

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 specific address (page number, chapter etc) so that I…
1
2 3
64 65