Fixed effects model

From HandWiki
Short description: Statistical model

In statistics, a fixed effects model is a statistical model in which the model parameters are fixed or non-random quantities. This is in contrast to random effects models and mixed models in which all or some of the model parameters are random variables. In many applications including econometrics[1] and biostatistics[2][3][4][5][6] a fixed effects model refers to a regression model in which the group means are fixed (non-random) as opposed to a random effects model in which the group means are a random sample from a population.[7][6] Generally, data can be grouped according to several observed factors. The group means could be modeled as fixed or random effects for each grouping. In a fixed effects model each group mean is a group-specific fixed quantity.

In panel data where longitudinal observations exist for the same subject, fixed effects represent the subject-specific means. In panel data analysis the term fixed effects estimator (also known as the within estimator) is used to refer to an estimator for the coefficients in the regression model including those fixed effects (one time-invariant intercept for each subject).

Qualitative description

Such models assist in controlling for omitted variable bias due to unobserved heterogeneity when this heterogeneity is constant over time. This heterogeneity can be removed from the data through differencing, for example by subtracting the group-level average over time, or by taking a first difference which will remove any time invariant components of the model.

There are two common assumptions made about the individual specific effect: the random effects assumption and the fixed effects assumption. The random effects assumption is that the individual-specific effects are uncorrelated with the independent variables. The fixed effect assumption is that the individual-specific effects are correlated with the independent variables. If the random effects assumption holds, the random effects estimator is more efficient than the fixed effects estimator. However, if this assumption does not hold, the random effects estimator is not consistent. The Durbin–Wu–Hausman test is often used to discriminate between the fixed and the random effects models.[8][9]

Formal model and assumptions

Consider the linear unobserved effects model for [math]\displaystyle{ N }[/math] observations and [math]\displaystyle{ T }[/math] time periods:

[math]\displaystyle{ y_{it} = X_{it}\mathbf{\beta}+\alpha_{i}+u_{it} }[/math] for [math]\displaystyle{ t=1,\dots,T }[/math] and [math]\displaystyle{ i=1,\dots,N }[/math]

Where:

  • [math]\displaystyle{ y_{it} }[/math] is the dependent variable observed for individual [math]\displaystyle{ i }[/math] at time [math]\displaystyle{ t }[/math].
  • [math]\displaystyle{ X_{it} }[/math] is the time-variant [math]\displaystyle{ 1\times k }[/math] (the number of independent variables) regressor vector.
  • [math]\displaystyle{ \beta }[/math] is the [math]\displaystyle{ k\times 1 }[/math] matrix of parameters.
  • [math]\displaystyle{ \alpha_{i} }[/math] is the unobserved time-invariant individual effect. For example, the innate ability for individuals or historical and institutional factors for countries.
  • [math]\displaystyle{ u_{it} }[/math] is the error term.

Unlike [math]\displaystyle{ X_{it} }[/math], [math]\displaystyle{ \alpha_{i} }[/math] cannot be directly observed.

Unlike the random effects model where the unobserved [math]\displaystyle{ \alpha_{i} }[/math] is independent of [math]\displaystyle{ X_{it} }[/math] for all [math]\displaystyle{ t=1,...,T }[/math], the fixed effects (FE) model allows [math]\displaystyle{ \alpha_{i} }[/math] to be correlated with the regressor matrix [math]\displaystyle{ X_{it} }[/math]. Strict exogeneity with respect to the idiosyncratic error term [math]\displaystyle{ u_{it} }[/math] is still required.

Statistical estimation

Fixed effects estimator

Since [math]\displaystyle{ \alpha_{i} }[/math] is not observable, it cannot be directly controlled for. The FE model eliminates [math]\displaystyle{ \alpha_{i} }[/math] by de-meaning the variables using the within transformation:

[math]\displaystyle{ y_{it}-\overline{y}_{i}=\left(X_{it}-\overline{X}_{i}\right) \beta+ \left( \alpha_{i} - \overline{\alpha}_{i} \right ) + \left( u_{it}-\overline{u}_{i}\right) \implies \ddot{y}_{it}=\ddot{X}_{it} \beta+\ddot{u}_{it} }[/math]

where [math]\displaystyle{ \overline{y}_{i}=\frac{1}{T}\sum\limits_{t=1}^{T}y_{it} }[/math], [math]\displaystyle{ \overline{X}_{i}=\frac{1}{T}\sum\limits_{t=1}^{T}X_{it} }[/math], and [math]\displaystyle{ \overline{u}_{i}=\frac{1}{T}\sum\limits_{t=1}^{T}u_{it} }[/math].

Since [math]\displaystyle{ \alpha_{i} }[/math] is constant, [math]\displaystyle{ \overline{\alpha_{i}}=\alpha_{i} }[/math] and hence the effect is eliminated. The FE estimator [math]\displaystyle{ \hat{\beta}_{FE} }[/math] is then obtained by an OLS regression of [math]\displaystyle{ \ddot{y} }[/math] on [math]\displaystyle{ \ddot{X} }[/math].

At least three alternatives to the within transformation exist with variations.

One is to add a dummy variable for each individual [math]\displaystyle{ i\gt 1 }[/math] (omitting the first individual because of multicollinearity). This is numerically, but not computationally, equivalent to the fixed effect model and only works if the sum of the number of series and the number of global parameters is smaller than the number of observations.[10] The dummy variable approach is particularly demanding with respect to computer memory usage and it is not recommended for problems larger than the available RAM, and the applied program compilation, can accommodate.

Second alternative is to use consecutive reiterations approach to local and global estimations.[11] This approach is very suitable for low memory systems on which it is much more computationally efficient than the dummy variable approach.

The third approach is a nested estimation whereby the local estimation for individual series is programmed in as a part of the model definition.[12] This approach is the most computationally and memory efficient, but it requires proficient programming skills and access to the model programming code; although, it can be programmed including in SAS.[13][14]

Finally, each of the above alternatives can be improved if the series-specific estimation is linear (within a nonlinear model), in which case the direct linear solution for individual series can be programmed in as part of the nonlinear model definition.[15]

First difference estimator

Main page: First-difference estimator

An alternative to the within transformation is the first difference transformation, which produces a different estimator. For [math]\displaystyle{ t=2,\dots,T }[/math]:

[math]\displaystyle{ y_{it}-y_{i,t-1}=\left(X_{it}-X_{i,t-1}\right) \beta+ \left( \alpha_{i} - \alpha_{i} \right ) + \left( u_{it}-u_{i,t-1}\right) \implies \Delta y_{it}=\Delta X_{it} \beta+ \Delta u_{it}. }[/math]

The FD estimator [math]\displaystyle{ \hat\beta_{FD} }[/math] is then obtained by an OLS regression of [math]\displaystyle{ \Delta y_{it} }[/math] on [math]\displaystyle{ \Delta X_{it} }[/math].

When [math]\displaystyle{ T=2 }[/math], the first difference and fixed effects estimators are numerically equivalent. For [math]\displaystyle{ T\gt 2 }[/math], they are not. If the error terms [math]\displaystyle{ u_{it} }[/math] are homoskedastic with no serial correlation, the fixed effects estimator is more efficient than the first difference estimator. If [math]\displaystyle{ u_{it} }[/math] follows a random walk, however, the first difference estimator is more efficient.[16]

Equality of fixed effects and first difference estimators when T=2

For the special two period case ([math]\displaystyle{ T=2 }[/math]), the fixed effects (FE) estimator and the first difference (FD) estimator are numerically equivalent. This is because the FE estimator effectively "doubles the data set" used in the FD estimator. To see this, establish that the fixed effects estimator is: [math]\displaystyle{ {FE}_{T=2}= \left[ (x_{i1}-\bar x_{i}) (x_{i1}-\bar x_{i})' + (x_{i2}-\bar x_{i}) (x_{i2}-\bar x_{i})' \right]^{-1}\left[ (x_{i1}-\bar x_{i}) (y_{i1}-\bar y_{i}) + (x_{i2}-\bar x_{i}) (y_{i2}-\bar y_{i})\right] }[/math]

Since each [math]\displaystyle{ (x_{i1}-\bar x_{i}) }[/math] can be re-written as [math]\displaystyle{ (x_{i1}-\dfrac{x_{i1}+x_{i2}}{2})=\dfrac{x_{i1}-x_{i2}}{2} }[/math], we'll re-write the line as:

[math]\displaystyle{ {FE}_{T=2}= \left[\sum_{i=1}^{N} \dfrac{x_{i1}-x_{i2}}{2} \dfrac{x_{i1}-x_{i2}}{2} ' + \dfrac{x_{i2}-x_{i1}}{2} \dfrac{x_{i2}-x_{i1}}{2} ' \right]^{-1} \left[\sum_{i=1}^{N} \dfrac{x_{i1}-x_{i2}}{2} \dfrac{y_{i1}-y_{i2}}{2} + \dfrac{x_{i2}-x_{i1}}{2} \dfrac{y_{i2}-y_{i1}}{2} \right] }[/math]

[math]\displaystyle{ = \left[\sum_{i=1}^{N} 2 \dfrac{x_{i2}-x_{i1}}{2} \dfrac{x_{i2}-x_{i1}}{2} ' \right]^{-1} \left[\sum_{i=1}^{N} 2 \dfrac{x_{i2}-x_{i1}}{2} \dfrac{y_{i2}-y_{i1}}{2} \right] }[/math]
[math]\displaystyle{ = 2\left[\sum_{i=1}^{N} (x_{i2}-x_{i1})(x_{i2}-x_{i1})' \right]^{-1} \left[\sum_{i=1}^{N} \frac{1}{2} (x_{i2}-x_{i1})(y_{i2}-y_{i1}) \right] }[/math]
[math]\displaystyle{ = \left[\sum_{i=1}^{N} (x_{i2}-x_{i1})(x_{i2}-x_{i1})' \right]^{-1} \sum_{i=1}^{N} (x_{i2}-x_{i1})(y_{i2}-y_{i1}) ={FD}_{T=2} }[/math]

Chamberlain method

Main page: Finance:Chamberlain's approach to unobserved effects models

Gary Chamberlain's method, a generalization of the within estimator, replaces [math]\displaystyle{ \alpha_{i} }[/math] with its linear projection onto the explanatory variables. Writing the linear projection as:

[math]\displaystyle{ \alpha_{i} = \lambda_0 + X_{i1} \lambda_1 + X_{i2} \lambda_2 + \dots + X_{iT} \lambda_T + e_i }[/math]

this results in the following equation:

[math]\displaystyle{ y_{it} = \lambda_0 + X_{i1} \lambda_1 + X_{i2} \lambda_2 + \dots + X_{it}(\lambda_t + \mathbf{\beta}) + \dots + X_{iT} \lambda_T + e_i + u_{it} }[/math]

which can be estimated by minimum distance estimation.[17]

Hausman–Taylor method

Need to have more than one time-variant regressor ([math]\displaystyle{ X }[/math]) and time-invariant regressor ([math]\displaystyle{ Z }[/math]) and at least one [math]\displaystyle{ X }[/math] and one [math]\displaystyle{ Z }[/math] that are uncorrelated with [math]\displaystyle{ \alpha_{i} }[/math].

Partition the [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Z }[/math] variables such that [math]\displaystyle{ \begin{array} [c]{c} X=[\underset{TN\times K1}{X_{1it}}\vdots\underset{TN\times K2}{X_{2it}}]\\ Z=[\underset{TN\times G1}{Z_{1it}}\vdots\underset{TN\times G2}{Z_{2it}}] \end{array} }[/math] where [math]\displaystyle{ X_{1} }[/math] and [math]\displaystyle{ Z_{1} }[/math] are uncorrelated with [math]\displaystyle{ \alpha_{i} }[/math]. Need [math]\displaystyle{ K1\gt G2 }[/math].

Estimating [math]\displaystyle{ \gamma }[/math] via OLS on [math]\displaystyle{ \widehat{di}=Z_{i}\gamma+\varphi_{it} }[/math] using [math]\displaystyle{ X_1 }[/math] and [math]\displaystyle{ Z_1 }[/math] as instruments yields a consistent estimate.

Generalization with input uncertainty

When there is input uncertainty for the [math]\displaystyle{ y }[/math] data, [math]\displaystyle{ \delta y }[/math], then the [math]\displaystyle{ \chi^2 }[/math] value, rather than the sum of squared residuals, should be minimized.[18] This can be directly achieved from substitution rules:

[math]\displaystyle{ \frac{y_{it}}{\delta y_{it}} = \mathbf{\beta}\frac{X_{it}}{\delta y_{it}}+\alpha_{i}\frac{1}{\delta y_{it}}+\frac{u_{it}}{\delta y_{it}} }[/math],

then the values and standard deviations for [math]\displaystyle{ \mathbf{\beta} }[/math] and [math]\displaystyle{ \alpha_{i} }[/math] can be determined via classical ordinary least squares analysis and variance-covariance matrix.

Use to test for consistency

Random effects estimators may be inconsistent sometimes in the long time series limit, if the random effects are misspecified (i.e. the model chosen for the random effects is incorrect). However, the fixed effects model may still be consistent in some situations. For example, if the time series being modeled is not stationary, random effects models assuming stationarity may not be consistent in the long-series limit. One example of this is if the time series has an upward trend. Then, as the series becomes longer, the model revises estimates for the mean of earlier periods upwards, giving increasingly biased predictions of coefficients. However, a model with fixed time effects does not pool information across time, and as a result earlier estimates will not be affected.

In situations like these where the fixed effects model is known to be consistent, the Durbin-Wu-Hausman test can be used to test whether the random effects model chosen is consistent. If [math]\displaystyle{ H_{0} }[/math] is true, both [math]\displaystyle{ \widehat{\beta}_{RE} }[/math] and [math]\displaystyle{ \widehat{\beta}_{FE} }[/math] are consistent, but only [math]\displaystyle{ \widehat{\beta}_{RE} }[/math] is efficient. If [math]\displaystyle{ H_{a} }[/math] is true the consistency of [math]\displaystyle{ \widehat{\beta}_{RE} }[/math] cannot be guaranteed.

See also

  • Fixed-effect Poisson model

Notes

  1. Greene, W.H., 2011. Econometric Analysis, 7th ed., Prentice Hall
  2. Diggle, Peter J.; Heagerty, Patrick; Liang, Kung-Yee; Zeger, Scott L. (2002). Analysis of Longitudinal Data (2nd ed.). Oxford University Press. pp. 169–171. ISBN 0-19-852484-6. 
  3. Fitzmaurice, Garrett M.; Laird, Nan M.; Ware, James H. (2004). Applied Longitudinal Analysis. Hoboken: John Wiley & Sons. pp. 326–328. ISBN 0-471-21487-6. 
  4. Laird, Nan M.; Ware, James H. (1982). "Random-Effects Models for Longitudinal Data". Biometrics 38 (4): 963–974. doi:10.2307/2529876. 
  5. Gardiner, Joseph C.; Luo, Zhehui; Roman, Lee Anne (2009). "Fixed effects, random effects and GEE: What are the differences?". Statistics in Medicine 28 (2): 221–239. doi:10.1002/sim.3478. PMID 19012297. 
  6. 6.0 6.1 Gomes, Dylan G.E. (20 January 2022). "Should I use fixed effects or random effects when I have fewer than five levels of a grouping factor in a mixed-effects model?". PeerJ 10: e12794. doi:10.7717/peerj.12794. PMID 35116198. 
  7. Ramsey, F., Schafer, D., 2002. The Statistical Sleuth: A Course in Methods of Data Analysis, 2nd ed. Duxbury Press
  8. Cameron, A. Colin; Trivedi, Pravin K. (2005). Microeconometrics: Methods and Applications. Cambridge University Press. pp. 717–19. ISBN 9780521848053. https://books.google.com/books?id=Zf0gCwxC9ocC&pg=PA717. 
  9. Nerlove, Marc (2005). Essays in Panel Data Econometrics. Cambridge University Press. pp. 36–39. ISBN 9780521022460. https://books.google.com/books?id=2eZpoAZnu9UC&pg=PA36. 
  10. Garcia, Oscar. (1983). "A stochastic differential equation model for the height growth of forest stands". Biometrics 39 (4): 1059–1072. doi:10.2307/2531339. 
  11. Tait, David; Cieszewski, Chris J.; Bella, Imre E. (1986). "The stand dynamics of lodgepole pine". Can. J. For. Res. 18 (10): 1255–1260. doi:10.1139/x88-193. 
  12. Strub, Mike; Cieszewski, Chris J. (2006). "Base–age invariance properties of two techniques for estimating the parameters of site index models". Forest Science 52 (2): 182–186. 
  13. Strub, Mike; Cieszewski, Chris J. (2003). Fitting global site index parameters when plot or tree site index is treated as a local nuisance parameter In: Burkhart HA, editor. Proceedings of the Symposium on Statistics and Information Technology in Forestry; 2002 September 8–12; Blacksburg, Virginia: Virginia Polytechnic Institute and State University. pp. 97–107. 
  14. Cieszewski, Chris J.; Harrison, Mike; Martin, Stacey W. (2000). "Practical methods for estimating non-biased parameters in self-referencing growth and yield models". PMRC Technical Report 2000 (7): 12. http://pmrc.uga.edu/TR2000-7.pdf. 
  15. Schnute, Jon; McKinnell, Skip (1984). "A biologically meaningful approach to response surface analysis". Can. J. Fish. Aquat. Sci. 41 (6): 936–953. doi:10.1139/f84-108. 
  16. Wooldridge, Jeffrey M. (2001). Econometric Analysis of Cross Section and Panel Data. MIT Press. pp. 279–291. ISBN 978-0-262-23219-7. https://archive.org/details/econometricanaly0000wool. 
  17. Chamberlain, Gary (1984). Chapter 22 Panel data. Handbook of Econometrics. 2. pp. 1247–1318. doi:10.1016/S1573-4412(84)02014-6. ISBN 9780444861863. 
  18. Ren, Bin; Dong, Ruobing; Esposito, Thomas M.; Pueyo, Laurent; Debes, John H.; Poteet, Charles A.; Choquet, Élodie; Benisty, Myriam et al. (2018). "A Decade of MWC 758 Disk Images: Where Are the Spiral-Arm-Driving Planets?". The Astrophysical Journal Letters 857 (1): L9. doi:10.3847/2041-8213/aab7f5. Bibcode2018ApJ...857L...9R. 

References

External links