Testing for Slope Heterogeneity Bias in Panel Data Models

Similar documents
Least Squares Estimation of a Panel Data Model with Multifactor Error Structure and Endogenous Covariates

Advanced Econometrics

A Robust Approach to Estimating Production Functions: Replication of the ACF procedure

1 Motivation for Instrumental Variable (IV) Regression

A Course in Applied Econometrics Lecture 7: Cluster Sampling. Jeff Wooldridge IRP Lectures, UW Madison, August 2008

Econometrics of Panel Data

Dealing With Endogeneity

Short T Panels - Review

Panel Data Models. James L. Powell Department of Economics University of California, Berkeley

Panel Threshold Regression Models with Endogenous Threshold Variables

Linear dynamic panel data models

Econometrics. Week 4. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Econometrics of Panel Data

Econometrics. Week 8. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

y it = α i + β 0 ix it + ε it (0.1) The panel data estimators for the linear model are all standard, either the application of OLS or GLS.

Repeated observations on the same cross-section of individual units. Important advantages relative to pure cross-section data

Current Version: December, 1999 FULLY MODIFIED OLS FOR HETEROGENEOUS COINTEGRATED PANELS * Peter Pedroni. Indiana University

DEPARTMENT OF ECONOMICS AND FINANCE COLLEGE OF BUSINESS AND ECONOMICS UNIVERSITY OF CANTERBURY CHRISTCHURCH, NEW ZEALAND

Applied Economics. Panel Data. Department of Economics Universidad Carlos III de Madrid

Applied Microeconometrics (L5): Panel Data-Basics

Chapter 6. Panel Data. Joan Llull. Quantitative Statistical Methods II Barcelona GSE

When Should We Use Linear Fixed Effects Regression Models for Causal Inference with Longitudinal Data?

Econometrics of Panel Data

Panel Data Models. Chapter 5. Financial Econometrics. Michael Hauser WS17/18 1 / 63

Review of Classical Least Squares. James L. Powell Department of Economics University of California, Berkeley

When Should We Use Linear Fixed Effects Regression Models for Causal Inference with Panel Data?

10 Panel Data. Andrius Buteikis,

Increasing the Power of Specification Tests. November 18, 2018

Specification testing in panel data models estimated by fixed effects with instrumental variables

Improving GMM efficiency in dynamic models for panel data with mean stationarity

A Practical Test for Strict Exogeneity in Linear Panel Data Models with Fixed Effects

Linear Models in Econometrics

Final Exam. Economics 835: Econometrics. Fall 2010

Econometrics I KS. Module 2: Multivariate Linear Regression. Alexander Ahammer. This version: April 16, 2018

Chapter 2: simple regression model

Econometric Methods for Panel Data

Non-linear panel data modeling

Testing Random Effects in Two-Way Spatial Panel Data Models

Estimation of Time-invariant Effects in Static Panel Data Models

Econometric Analysis of Cross Section and Panel Data

Are Forecast Updates Progressive?

Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares

The regression model with one stochastic regressor (part II)

Robust Unit Root and Cointegration Rank Tests for Panels and Large Systems *

Casuality and Programme Evaluation

EMERGING MARKETS - Lecture 2: Methodology refresher

Revisiting the Synthetic Control Estimator

Missing dependent variables in panel data models

Are Forecast Updates Progressive?

Bootstrapping Heteroskedasticity Consistent Covariance Matrix Estimator

Econometrics of Panel Data

Specification Test for Instrumental Variables Regression with Many Instruments

Testing for Unit Roots with Cointegrated Data

Panel Data Exercises Manuel Arellano. Using panel data, a researcher considers the estimation of the following system:

G. S. Maddala Kajal Lahiri. WILEY A John Wiley and Sons, Ltd., Publication

Introductory Econometrics

1 Estimation of Persistent Dynamic Panel Data. Motivation

Regression and Statistical Inference

When Should We Use Linear Fixed Effects Regression Models for Causal Inference with Longitudinal Data?

A Practitioner s Guide to Cluster-Robust Inference

Economics 582 Random Effects Estimation

Econometrics. Week 6. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

Unit Roots and Structural Breaks in Panels: Does the Model Specification Matter?

Test of hypotheses with panel data

BOOTSTRAPPING DIFFERENCES-IN-DIFFERENCES ESTIMATES

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

Economics 536 Lecture 7. Introduction to Specification Testing in Dynamic Econometric Models

Economics 308: Econometrics Professor Moody

Multiple Equation GMM with Common Coefficients: Panel Data

Econ 582 Fixed Effects Estimation of Panel Data

Econometrics Problem Set 11

Using all observations when forecasting under structural breaks

Lecture: Simultaneous Equation Model (Wooldridge s Book Chapter 16)

What s New in Econometrics? Lecture 14 Quantile Methods

Birkbeck Working Papers in Economics & Finance

Econometrics II. Nonstandard Standard Error Issues: A Guide for the. Practitioner

Econ 510 B. Brown Spring 2014 Final Exam Answers

Review of Econometrics

The Generalized Cochrane-Orcutt Transformation Estimation For Spurious and Fractional Spurious Regressions

A Test of Cointegration Rank Based Title Component Analysis.

INTRODUCTION TO BASIC LINEAR REGRESSION MODEL

WISE International Masters

V. Properties of estimators {Parts C, D & E in this file}

Testing Homogeneity Of A Large Data Set By Bootstrapping

Revisiting the Synthetic Control Estimator

Ninth ARTNeT Capacity Building Workshop for Trade Research "Trade Flows and Trade Policy Analysis"

A ROBUST TEST FOR PARAMETER HOMOGENEITY IN PANEL DATA MODELS

A Course on Advanced Econometrics

Testing Homogeneity in Panel Data Models with Interactive Fixed Effects

Research Statement. Zhongwen Liang

Reliability of inference (1 of 2 lectures)

Fixed Effects Models for Panel Data. December 1, 2014

Comprehensive Examination Quantitative Methods Spring, 2018

Econometrics Summary Algebraic and Statistical Preliminaries

Lecture 9: Panel Data Model (Chapter 14, Wooldridge Textbook)

EC212: Introduction to Econometrics Review Materials (Wooldridge, Appendix)

Topic 10: Panel Data Analysis

Working Paper No Maximum score type estimators

Dynamic Panel Data Models

Transcription:

Testing for Slope Heterogeneity Bias in Panel Data Models Murillo Campello, Antonio F. Galvao, and Ted Juhl Abstract Standard econometric methods can overlook individual heterogeneity in empirical work, generating inconsistent parameter estimates in panel data models. We propose the use of methods that allow researchers to easily identify, quantify, and address estimation issues arising from individual slope heterogeneity. We first characterize the bias in the standard fixed effects estimator when the true econometric model allows for heterogeneous slope coefficients. We then introduce a new test to check whether the fixed effects estimation is subject to heterogeneity bias. The procedure tests the population moment conditions required for fixed effects to consistently estimate the relevant parameters in the model. We establish the limiting distribution of the test, and show that it is very simple to implement in practice. We also generalize the test to allow for cross-section dependence in the errors and a form of endogeneity. Examining firm investment models to showcase our approach, we show that heterogeneity bias-robust methods identify cash flow as a more important driver of investment than previously reported. Our study demonstrates analytically, via simulations, and empirically the importance of carefully accounting for individual specific slope heterogeneity in drawing conclusions about economic behavior. Key Words: Testing, fixed effects, individual heterogeneity, bias, slope heterogeneity JEL Classification: C12, C23 The authors are grateful to Cecilia Bustamante, Zongwu Cai, George Gao, Erasmo Giambona, Hyunseob Kim, Oliver Linton, Whitney ewey, Suyong Song, Albert Wang, Zhijie Xiao, and the participants at seminars at Chapman University, Claremont McKenna College, University of Iowa, University of Kansas, University Wisconsin-Milwaukee, 25th Midwest Econometrics Group, and Y Camp Econometrics VIII for their constructive comments and suggestions. Murillo Campello, 369 Sage Hall, Samuel Curtis Johnson Graduate School of Management, Cornell University, Ithaca, Y 14853; Tel (607)-255-1282; (campello@cornell.edu). Antonio Galvao, Tippie College of Business, University of Iowa, W284 Pappajohn Business Building, 21 E. Market Street, Iowa City, IA 52242; Tel (319) 335-1810; (antonio-galvao@uiowa.edu). Ted Juhl, Department of Economics, University of Kansas, 415 Snow, Lawrence, KS 66045; Tel (785)-864-2849; (juhl@ku.edu).

1 Introduction With the increasing availability of large, comprehensive databases, researchers seek to identify and understand richer nuances of microeconomic behavior. Recent computable general equilibrium models introduce behavioral heterogeneity across firms and agents when generating distributions of potential outcomes. To the extent that economic decisions are shaped by these considerations it is natural to consider a methodology that allows for information about the distribution of model inputs (e.g., input variances and covariances) to be incorporated in empirical parameter estimates. This paper shows that estimation methods that ignore relations between model input distribution and parameters can lead to biased inferences about microeconomic behavior. Understanding and addressing these problems is key to advancing empiricists ability to inform theory development. Empirical work in economics often relies on methods that assume a large degree of homogeneity across individuals. One way to account for some degree of heterogeneity in panel data models is to use the ordinary least squares fixed effects (OLS-FE) estimator. When estimating individual-fixed effects models, one often imposes concomitant assumptions of heterogeneous intercepts and homogeneous slope coefficients across individuals. This paper characterizes and addresses the issues of estimation and inference of econometric models in the presence of heterogeneity in individual policy responses ( slope coefficients ). We contribute to the literature by proposing the use of methods that allow researchers to easily identify, quantify, and address estimation issues arising from individual heterogeneity. More generally, our analysis warns researchers about imposing arbitrary homogeneity restrictions when studying complex economic behavior. We start by describing two main results. First, we show analytically how the presence of individual slope heterogeneity may bias the policy estimates obtained under the OLS-FE framework. Second, we discuss alternative methods that account for slope heterogeneity and 1

produce consistent estimates for the parameters of interest. To do so, we analyze a simple panel data model from which we recover the parameters of interest for each individual. This allows us to study individual slope heterogeneity in detail. To summarize the coefficients of interest, we employ a simple statistic: the mean group (MG) estimator. In its simplest form, the MG estimator is the average of the response (slope) coefficients of each of the individuals used to fit an empirical model (see Pesaran (2006)). This estimator is in the class of minimum distance estimators and has several attractive features. 1 Our analysis shows that the MG method has estimation and inference properties that generally dominate those of the OLS-FE estimator when firms respond differently to innovations to a model driver. At the same time, we provide researchers with diagnostic tests to determine whether the use of the OLS-FE approach is warranted in their particular applications. Importantly, the main contribution of this paper is to develop a new test to identify whether the presence of slope heterogeneity in the data will cause bias in OLS-FE estimates. The OLS-FE is asymptotically biased when the heterogeneous coefficients are correlated with the variance of the regressors. Accordingly, we propose a test for the null hypothesis that there is no correlation between variances of the data and the heterogeneous parameters. Hence, our procedure tests the population moment conditions required for fixed effects to consistently estimate the relevant parameters in the model. We describe the associated test statistic and derive its limiting distribution. This test is particularly useful for applied researchers in that it follows a standard chi-square distribution, for which critical values are tabulated and widely available. We also generalize the test to allow for cross-sectional dependence in the errors and in the regressors, and also a form of endogeneity. We show that these extensions can be easily 1 First, the MG estimator is easy to implement and its computation is no more difficult than that of the OLS-FE. Second, the economic interpretation of the coefficients returned by the MG is similar to that of least squares-based methods (including the OLS-FE). Third, inference procedures using the MG are textbook standard. Fourth, the MG estimator accounts not only for individual-specific slope coefficients, but also for idiosyncratic, individual-fixed intercepts. Finally, the MG estimator can account for time-fixed effects as well. 2

accommodated in the testing procedure by estimating the general appropriated average of the response (slope) coefficients of each of the individuals and its corresponding variancecovariance matrix. In addition, the liming distribution for such tests remains the same as in the simple case. These are important extensions which broaden the applicability of the proposed tests in practice, since cross-sectional dependence and endogeneity are common concerns in empirical research. There are alternative tests available in the literature for the hypothesis of slope homogeneity across individuals, including, among others, Pesaran, Smith, and Im (1996), Phillips and Sul (2003), Pesaran and Yamagata (2008), Blomquist and Westerlund (2013), and Su and Chen (2013). Pesaran, Smith, and Im (1996) propose an application of the Hausman (1978) testing procedure where the OLS-FE estimator is compared with the MG estimator. Phillips and Sul (2003) suggest a Hausman-type test in the context of stationary first-order autoregressive panel models, where the cross-section, n, is fixed as the time-series, T, goes to infinity. Hsiao (2003) describes a variation of the Breusch and Pagan (1979) test for the slope homogeneity, which is valid when both n and T dimensions tend to infinity. More recently, Pesaran and Yamagata (2008) propose a dispersion type test based on Swamy (1970) type test. They standardize the Swamy test so that this dispersion test can be applied when both n and T are large. Blomquist and Westerlund (2013) propose a test that is robust to general forms of cross-sectional dependence and serial correlation. Su and Chen (2013) develop a test for slope homogeneity in large-dimensional panel models with interactive fixed effects. Compared to the existing procedures for testing slope homogeneity, our approach has several distinctive advantages. First, the proposed methods test the null hypothesis of lack of correlation between variances of the data and the heterogeneous parameters. This is important because it is possible that the individual heterogeneity is such that there is no bias under OLS-FE, and thus existing test procedures would not be able to detect departures from the null hypothesis. evertheless, our proposed tests are able to detect such departures since 3

the tests are based on the correlation between variances of the data and the heterogeneous parameters. Second, in the simplest case of the model, the tests do not require the time-series to diverge to infinity. Third, the test procedures can be extended to accommodate correlation between errors from different cross-sectional units, as well as a form of endogeneity. This makes the testing procedure beneficial for many empirical applications. Monte Carlo simulations assess the finite sample properties of the proposed methods. The experiments suggest that the proposed approaches perform very well in finite samples. The bias of fixed effects estimation can be made arbitrarily large by increasing the magnitude of the covariance between the regression slope and the data variance. Critically, the MG estimator we employ is unaffected by the slope heterogeneity bias. Finally, the new tests possess good finite sample performance and have correct empirical size and power to detect precisely the cases where OLS-FE is biased. To illustrate the performance of the proposed methods in real-world data, we study empirically the investment model of Fazzari et al. (1988), where a firm s investment is regressed on a proxy for investment demand (Tobin s Q) and cash flow. Using annual COMPUSTAT data covering a four-decade window, we study slope heterogeneity in investment models contrasting estimates from alternative methodologies. The coefficients returned for Q under the methods we consider are fairly comparable in magnitude and significance. Results are very different, however, for the response of investment to cash flow. Indeed, our tests identify pronounced firm response heterogeneity, and the MG-estimated cash flow coefficient is substantially larger than those returned by the other methods. In concrete terms, the estimated coefficient on cash flow increases from 0.057 (0.043) under the OLS (OLS-FE) estimation to 0.291 under the MG estimation; a 6 7-fold increase on the same data. For long panels, the cash flow coefficient is 15 times larger under the MG method. Our results imply that cash flow is a much more relevant driver of investment than previous studies have suggested. The remainder of the paper is organized as follows. Section 2 describes the biases that 4

affect OLS-FE in the presence of individual slope heterogeneity, and discusses the MG estimator. Section 3 presents the proposed test for slope heterogeneity and its generalization. Monte Carlo experiments are discussed in Section 4. In Section 5, we estimate a corporate investment model and compare results from different methods. Section 6 concludes. 2 Understanding The Individual Heterogeneity Bias This section presents the panel data model and characterizes the bias in the OLS-FE estimator when the true econometric model allows for heterogeneous slope coefficients. To guide researchers in their choice of methodology, we also show conditions under which the OLS-FE returns consistent estimates. These conditions are limiting and imply potentially important compromises for researchers inferences. We also discuss the mean group estimator. 2.1 Biases In The Individual-Fixed Effects Estimator When modeling economic behavior, empiricists commonly estimate regression models that allow individuals or firms to have different individual-fixed effects (different intercepts ), yet impose equal slope coefficients across units. As we show next, an incorrect homogenous slope restriction leads to a bias in the policy estimates one obtains under the ordinary least squares fixed effects (OLS-FE) framework. Assume the following baseline model for the data generating process y it = α i + x itβ i + u it, i = 1,...,, t = 1,..., T, (1) where y it is the dependent variable, x it is a k 1 vector of exogenous regressors, and u it is the conditionally mean zero innovation term. The term α i captures individual-specific fixed effects, while the slope coefficients β i may vary across individuals. 5

In the presence of slope heterogeneity, one would like to recover the slope coefficient of each individual. In most empirical test settings, however, the objective is to report a summary statistic for policy purposes. In that context, a reasonable quantity to estimate is the average individual slope. As such, the empiricist might try to estimate the parameters E(β i ), the vector representing the average effect from marginal changes in x it. 2 If all individuals are identical, then the OLS-FE method provides an easy way to estimate the parameters of interest. It is rarely the case, however, that one can a priori justify the assumption of homogeneity in individuals responses to economic stimuli. Indeed, as discussed above, theoretical modeling and casual observation often suggest otherwise. We now characterize the problems of using the OLS-FE method to estimate the population quantities E(β i ) = β (the average individual slope coefficients) in the presence of policy heterogeneity. Consider estimating the following model via OLS-FE y it = α i D i + x itβ + +u it, i = 1,...,, t = 1,..., T, (2) where the slope parameters are forced to be equal across individuals, even though the data generating process is given by equation (1). The variable D i is one for individual (or firm) i and 0 otherwise. The OLS-FE estimator includes individual dummies, D i, as a way to account for individual-fixed idiosyncrasy. That is, the only type of heterogeneity allowed in this model concerns intercept terms. The balanced panel model in matrix form is given as y i = α i ι T + X i β i + u i, for i = 1,..., where y i is a T 1 vector, y i = (y i1,..., y it ), ι T is a T 1 vector of ones, X i 2 The model in equation (1) can also be interpreted as a random coefficient model. Although we focus on the interpretation of heterogeneous slopes, we refer the reader to Hsiao and Pesaran (2008) and Wooldridge (2010) for detailed discussions of random coefficient models. 6

is a T k matrix with rows x it, X i = (x i1,..., x it ), and u i is a vector with the errors. The standard fixed effects estimator is calculated based on the implicit assumption that β i are the same for each i. The formula is given as ( ) 1 ˆβ F E = Xi M ι X i X i M ι y i, where M ι = I T ι T (ι T ι T ) 1 ι T, I T is an identity matrix of order T. M ι computes the deviation-from-individual-means. It is instructive to rewrite the fixed effects estimator in two different ways. First, if the corresponding inverses exist, we can write ˆβ F E = = ( ) 1 Xi M ι X i (Xi M ι X i )(Xi M ι X i ) 1 Xi M ι y i W i ˆβi, (3) where ( ) 1 W i = Xi M ι X i (Xi M ι X i ), and ˆβi = (Xi M ι X i ) 1 Xi M ι y i. otice that ˆβ i is the usual OLS estimator for each i. This first representation in equation (3) shows that fixed effects estimators are a weighted average of the individual OLS estimators for each cross-sectional unit. Moreover, the weights are larger for cross-sectional units with more variation in the X i. Such a weighting scheme has the potential to improve efficiency. If there is no parameter heterogeneity and no heteroskedasticity, the variance of each ˆβ i is σ 2 (Xi M ι X i ) 1. Therefore, the observations with more variation in X i are more precisely estimated, and should be given more weight. However, if there is slope heterogeneity so that β i are different, there is a potential for a severe 7

problem. In particular, if the weights (W i ) and β i are correlated, we may not consistently estimate any parameter of interest. The second representation we present illustrates this problem more clearly. We wish to estimate E(β i ), the average slope. Then, ( 1 ˆβ F E E(β i ) = ) 1 Xi M ι X i 1 Xi M ι [X i β i X i E(β i ) + u i ]. (4) From the representation in equation (4), the term that potentially renders the fixed effects estimator inconsistent is 1 Xi M ι X i [β i E(β i )]. (5) Intuitively, if the slope parameters β i are correlated with the variation in X i in the crosssection, fixed effects estimation will not be consistent. 3 There are conditions where fixed effects may be appropriate. Indeed, the literature proposes conditions where OLS-FE estimators are robust to heterogeneity in the slope parameters (references include Wooldridge (2003, 2005, 2010)). In the context of our model, the conditions amount to E(β i M ι X i ) = E(β i ), (6) which would imply that E(Xi M ι X i [β i E(β i )]) = 0, and then (5) would converge to zero under suitable regularity conditions. In other words, the assumption such as (6) implies fixed effects estimation is consistent. evertheless, in general, the OLS-FE can be inconsistent. Consider the representation of the bias term. A simple application of the law of large numbers suggests that the asymptotic bias is E ( ) Xi 1 ( M ι X i E X i M ι X i [β i E(β i )] ). 3 Pesaran and Smith (1995) show that in a dynamic panel data model, heterogeneity causes bias in any case. 8

To illustrate how this might arise in a simple empirical model, consider the standard linear model with two covariates, y it = α i + w it θ i + z it γ i + u it. The representation of the asymptotic bias for the simple model with two covariates is given by following equation θ F E E(θ i ) p E(σ2 wi) E(σ wzi ) γ F E E(γ i ) E(σ wzi ) E(σzi) 2 1 E[σ2 wi(θ i θ)] + E[σ wzi (γ i γ)], (7) E[σ wzi (θ i θ)] + E[σzi(γ 2 i γ)] where σwi 2 and σzi 2 represent the individual-specific variance of w it and z it, respectively, and σ wzi is the individual-specific covariance of w it and z it. What we see from the representation in (7) is that, in general, the covariance between the variance of the regressors and the parameters causes the bias. For example, if cross-sectional units with a high variance in z it have a larger response measured by γ i, there will be a positive asymptotic bias in the fixed effects estimator for γ. Moreover, these effects can disseminate to the other parameter, depending on the covariance structure. evertheless, equation (7) also shows that the OLS- FE can be asymptotically unbiased when there is no covariance between the variance of the regressors and the parameters. In this case, the elements in the vector in the far right-handside are equal to zero. 2.2 The Mean Group Estimator: Estimation and Inference Our focus is the estimation of models in which response parameters may vary across individuals observed over time (panel data). If response heterogeneity is part of the structural model, one needs to decide what to report. In principle, one needs an estimator that is useful in summarizing heterogeneity in the coefficients of interest, and that at the same time is easy to compute and interpret. In this context, a measure of centrality of the distribution 9

of individuals responses is arguably a reasonable quantity to estimate. The mean group (MG) estimator reports the mean of the regression slope parameters as a way to summarize the population. 4 For most applications in economics and finance, a viable MG estimator will consist of the average of OLS coefficients from each individual whose data are used to fit an empirical model. This can be represented by β MG = 1 β i, (8) where β i is the OLS for each sample individual. The MG estimator allows for both the intercept and slope coefficients to vary across individuals. This happens because, by applying OLS to each individual equation, one simultaneously estimate intercept (standard fixed effects ) as well as slope coefficients for each individual. Critically, the MG estimator does not suffer from the heterogeneity bias that we characterize in the previous section. That the MG estimator is unbiased stems from the fact that we fit the empirical model onto each individual separately, correctly accounting for individual heterogeneity. The method combines individual estimates equally, averaging over consistent parameters. The interpretation of the estimator in (8) is straightforward. The population parameter of interest is the mean coefficient over the sample individuals; β MG = E(β i ). The estimator β MG is the sample mean of individual slope estimates. In model (1) we can average over the sensitivity of the dependent variable y it with respect to a covariate w it, holding z it constant. From equation (1) the interpretation θ i is E(y it x it, α i ) x it = β i. 4 This estimator is fully developed in Pesaran (2006) and belongs to the class of minimum distance estimators (see ewey and McFadden (1994)). 10

Similar to standard regression analysis, the MG estimator can be interpreted as the average [ ] E(y sensitivity of y it to x it, and E it x it,α i ) x it = θ MG. Inference for the MG estimator is also straightforward. The asymptotic variance for ( ˆβMG β) is estimated via Ω MG = 1 1 ( β i β MG )( β i β MG ). (9) Inference is based on asymptotic normality as the time observations, T, and the number of individuals,, increase. 3 Testing Slope Heterogeneity It is important that we present a practical procedure to identify and quantify problem of slope heterogeneity. In this section, we first review a test for the presence of slope heterogeneity building on dispersion tests by Pesaran and Yamagata (2008) and Swamy (1970). Importantly, as noted in Section 2, it is possible that the individual heterogeneity is such that there is no bias under the OLS-FE. Thus, second, we propose a novel test designed to detect precisely when and how slope heterogeneity will cause bias in parameters estimated via OLS-FE. Third, we generalized the proposed test to allow for cross-sectional dependence in the errors and in the regressors, and also a form of endogeneity. 3.1 Identifying Slope Heterogeneity Pesaran and Yamagata (2008) consider the regression panel model with individuals and T time periods in equation (1). Let β i be the vector of policy parameters in the model, k 1. 11

We wish to test the following null hypothesis of slope homogeneity across individuals H 0 : β i = β, for some fixed vector β for all i, against the alternative H 1 : β i β j for some i, j. The strategy is to estimate regression coefficients using the time-series for each individual, then compare the estimates with β. Under the null, the estimates for each individual should be close to β. Large differences across these estimates and β indicate that the null should be rejected. Since we do not observe the true coefficient β, we replace it with β W F E, which is a weighted version of the fixed effects estimator. The test is defined as S := ( βi β ) ( ) X 1 i M ι X i W F E ( βi σ β i 2 W F E), where σ i 2 = (y i X i βf E ) M ι(y i X i βf E ), β (T k 1) F E is the standard OLS-FE, and β W F E is defined as ( ) Xi β W F E = 1 MιX i X σ i 2 i Mιy i. One can also consider a standardized version of the σ i 2 test as = 1 S k 2k. Under standard regularity conditions (see Pesaran and Yamagata (2008)): S d χ 2 ( 1)k, as T ; d (0, 1), as (, T ). where k is the number of restriction under the null hypothesis. 12

3.2 Diagnosing The Bias In The Fixed Effects Estimator The Pesaran-Yamagata-Swamy (PYS) test presented above provides a way to identify the presence of individual slope heterogeneity in a model. Slope heterogeneity, however, need not cause OLS-FE estimates to be biased as shown in equation (7) (see also Wooldridge (2005, 2010)). Alternatively, the bias could be small enough so as to make the OLS-FE still desirable. We now introduce a novel test measuring the magnitude of the slope heterogeneity bias in OLS-FE estimations. In the next section, we generalize the test to accommodate more general conditions and allow for cross-sectional dependence in the errors and in the regressors, as well as a form of endogeneity. We wish to test the hypothesis that the heterogeneity across individuals does not induce a bias in the OLS-FE estimator. Equation (7) shows that the OLS-FE estimates are asymptotically biased when the heterogeneous coefficients are related to the variance and covariance of the regressors. Thus, we construct a test based on this result. In particular, we wish to test the null hypothesis that there is no correlation between the coefficients and covariance of the regressors. Formally, the null hypothesis is define as H 0 : E [ X i M ι X i (β i β) ] = 0, (10) where X i = (x i1,..., x it ). The test statistic for the null hypothesis in (10) is based on an estimate of equation (5). Define δ = 1 = 1 Xi M ι X i ( ˆβ i ˆβ MG ) ˆδ i. The term δ is an estimate of the quantity that causes the OLS-FE to be inconsistent. We want to test if that quantity is significantly different from zero. To this end, we need an 13

estimate of its variance, which is calculated using Ω = 1 ˆδ iˆδ i. The statistic of interest, which we refer to as the heterogeneity bias (HB) test, is given by HB = δ Ω+ δ, (11) where Ω + is the Moore-Penrose inverse of Ω. The null hypothesis is that heterogeneity in slope parameters does not cause OLS-FE to be inconsistent. Rejection of the null implies that one should use the MG estimator instead. Remark 3.1 Hsiao and Pesaran (2008) propose an alternative Hausman test for slope heterogeneity. In particular, they test the difference between the Mean Group estimator and a pooled estimator (like fixed effects). However, in their framework, under the null of no heterogeneity in slopes (nor in error variances), fixed effects is an efficient estimator. Hence, they are able to apply the usual Hausman type variance estimator (the difference between the consistent estimator and efficient estimator variances) to standardize the statistic. In our setup, we do not impose lack of heterogeneity under the null, only a population moment condition as in (10) where fixed effects is consistent. Rejection of the Hausman test might be due to slope heterogeneity, slope heterogeneity bias of fixed effects, or lack of efficiency of the fixed effects estimator for a given empirical situation. Our test is designed to target only the potential bias of fixed effects estimation. ext, we derive the limiting distribution of the proposed HB test. To this end, we consider the following set of assumptions. Assumption 1 Let the matrix X i have rows x it. Suppose that for all i, T 1 (X i M ι X i ) is invertible. 14

Assumption 2 The terms T 1 (X i M ι X i )(β i β) are independent across i with finite variance. Assumption 3 Errors u i are independent across i with E(u i X j, α j ) = 0 for all i and j, and u j is independent of β i for all i and j. Assumption 1 allows us to estimate each individual slope parameter, β i. This assumption could be violated for cases with a limited number of time-series observations, T, for example. It is important to notice that, Condition 1 does not explicitly require T, which is a common requirement in the literature (see, e.g., Phillips and Sul (2003), Pesaran and Yamagata (2008), Su and Chen (2013)), but it requires enough variability in the time-series dimension to be satisfied. Assumption 2 is related to the usual assumption in random coefficient models where the parameters are all assumed to be independent of each other as well as independent of the data (see, e.g., Hsiao (2003)) for a discussion. Assumption 3 is similar to the standard assumption restricting the errors on the cross-section dimension when T is finite (such as Wooldridge (2010)). ote that the assumptions allow for serially correlated errors as well as heterosekasticity. Assumptions 1 3 are very mild and standard in the literature. evertheless, below we will relax these assumptions and modify our test to accommodate the more general conditions. ow we present the asymptotic distributions of the HB test. Theorem 1 Suppose that Assumptions 1-3 hold and that H 0 : E [ X i M ι X i (β i β) ] = 0, then as with T finite, δ Ω+ δ d χ 2 k, where k is the number of regressors in the model. Proof. In Appendix A. 15

Theorem 1 provides the asymptotic distribution of new test. otably, implementation of the proposed heterogeneity test is straightforward. One simply: (I) computes the test statistic, HB, using in equation (11); (II) sets the level of significance; and (III) finds the critical values from standard distribution tables. Since HB is asymptotically bounded by a chisquare distribution, critical values are tabulated and widely available. The null hypothesis is rejected if the value of the test is outside the interval defined by the critical value of choice. It is important to highlight the differences between the HB and PYS tests. The HB test is designed to test a completely different null hypothesis. In particular, the null hypothesis associated with the HB test is the lack of correlation between variances of the data and the heterogeneous parameters. The PYS test takes the null hypothesis of no parameter heterogeneity, and detects heterogeneity. Therefore, it is possible to reject the null of parameter heterogeneity with the PYS test, yet fail to reject the null of no bias in the fixed effects estimator. The tests are very much complementary. 3.3 Cross-Sectional Dependence The results presented in the paper can be extended to more general cases. In particular, we can allow for correlation between errors from different cross-sectional units, and a form of endogeneity. In this subsection we show that these extensions can be easily accommodated in the testing procedure by estimating the general appropriated average of the response (slope) coefficients of each of the individuals and its corresponding variance-covariance matrix. In particular, consider the following model y it = α i + x itβ i + u it, u it = φ i f t + ɛ it, where each φ i is 1 j and f t is a j 1 vector of unobserved factors. 16

In the above model, the presence of f t allow us to consider cross-section dependence in the errors and in the regressors, and also a form of endogeneity. First, the existence of f t in each of the cross-sectional equations allows for cross-sectional dependence in the u it error terms. Such dependence is modeled in Bai (2009) and Pesaran (2006), among others. In addition to allowing for cross-sectional dependence between the errors, explicit dependence between the factors and the covariates is allowed via x it = η i + Λ i f t + v it. Hence, second, f t allows for dependence between cross-sectional covariates. That is, x it and x jt are dependent through the mutual presence of f t. Third, the more general model uses f t in the dual roles of cross-sectional dependence of error terms, as well as endogeneity of x it through the effects of f t on both u it and x it. Pesaran (2006) shows that the average parameter E(β i ) can be consistently estimated by including the cross-sectional averages at each time period, ȳ t and x t, in each unit regression, and combining via the sample average. To see this, write the model as a system, x it η i y it = α i + βi η i + β i Λ i = B i + C i f t + ξ it. Λ i + φ i f t + β i v it + ɛ it v it 17

The factors, f t can be estimated using this model. Define ȳ t = 1 ξ t = 1 C = 1 y it, x t = 1 ξ it, B = 1 C i. x it, B i, If the rank of C is full for all, then we can solve for f t as f t = ( C C ) 1 C ȳ t x t B ξ t. The model for y it is written as y it = α i + x itβ i + φ i ( C C ) 1 C ȳ t x t B ξ t + ɛ it. Under regularity conditions, ξ t will converge to zero, and hence we can use ȳ t and x t in the model to account for f t. For each cross-sectional unit, we can estimate β i, and then consider the mean group estimator accounting for cross-sectional correlation. To this end, define the T (k + 2) matrix 1 ȳ 1 x 1 Q =..., 1 ȳ T x T 18

and let M Q = I Q(Q Q) + Q, so that ˆβ Ci = (X i M Q X i ) 1 X i M Q y i. The goal of using the cross-sectional averages as regressors is to approximate the factors, f t. If the factors were actually observed, we could replace M Q with M G where we define 1 f1 G =... 1 ft This matrix will be important for the asymptotic results, and we will include an assumption about this matrix in what follows. The analogue of the fixed effects estimator when allowing for cross-sectional dependence and endogeneity is given by the pooled estimator of Pesaran (2006) ( ) 1 ˆβ P = Xi M Q X i X i M Q y i, where efficiency gains are possible if there is no heterogeneity of the β i parameters. Therefore, the analogue of the Mean Group estimator, which we label Mean Group Correlated (MGC) is given as ˆβ MGC = 1 ˆβ Ci. i The ˆβ MGC is used in the construction of the general version of the HB test. Similar to 19

the construction of the test above, we have ˆδ C = 1 = 1 Xi M Q X i ( ˆβ Ci ˆβ MGC ) (12) ˆδ ci. Finally, to obtain the statistic of test we need the corresponding variance-covariance matrix, which is computed as Ω C = 1 1 ˆδ Ciˆδ Ci. Therefore, analogously to the previous test case, we wish to test the hypothesis that the heterogeneity across individuals does not induce a bias in the pooled estimator ( ˆβ P ). These estimates are asymptotically biased when the heterogeneous coefficients are related to the variance and covariance of the regressors. As in previous section, we wish to test the null hypothesis that there is no correlation between the coefficients and covariance of the regressors. The null hypothesis is define as H 0 : E [ (X i M G X i )(β i β) ] = 0. (13) The test statistic for the null hypothesis in (13) will be based on an estimate of equation (12). We refer to the modified test as the Heterogeneity Bias Cross test (HBC) as it allows for the cross-sectional dependence and endogeneity through the factor structure. The test statistic is defined as following HBC = ˆδ C Ω + ˆδ C C. (14) The presence of the factors f t changes the assumptions needed to obtain the same limiting distribution, and are similar to those of Pesaran (2006). We consider the following set of 20

assumptions. Assumption 4 The common factors f t are covariance stationary with absolutely summable autocovariances. Moreover, f t is independent of ɛ it and v it for all i, t, t. Assumption 5 The variables ɛ it and v it are independently distributed for all i, j, t, t. Both ɛ it and v it are linear stationary processes with absolutely summable autocovariances, where the error process has finite fourth order cumulants. Assumption 6 The factor loadings φ i and λ i are iid and independent of all f t, ɛ jt, v jt textcolorredfor all i, j, t. φ i and λ i have finite second moment matrices. Assumption 7 The β i are iid and independent of all f t, ɛ jt, φ j and λ j for all i, j, t. The terms β i v it are independent across i with mean zero and finite fourth order cumulants. Assumption 8 The matrices T 1 (X i M Q X i ) and T 1 (X i M G X i ) are non-singular for all i, and their respective inverses have finite second-order moment matrices for all i. Assumption 9 T 1 (X i M G X i )(β i β) are independent across i with finite second-order moment matrices. Assumption 10 The matrix C is full rank j (k + 1) for all. These assumptions are general and allow for a wide variety of data generating processes. Assumption 4 restricts the dependence between the cross-sectional x it variables to be solely a function of the factors, while Assumption 6 ensures that the factors and the other error processes do not influence the loadings. Assumption 5 is a standard condition on stationarity of the innovation terms only requiring the corresponding fourth comments to be finite. Assumption 7 restricts the dependence between β i and the other variables. 5 Assumption 8 5 This assumption is a modification of Assumption 4 of Pesaran (2006) in that we allow for β i to be correlated with the variance of v it, as will happen when fixed effects is not consistent. 21

is an identification condition for each of the cross-sectional units. The independence condition from Assumption 9 is more general than it might first appear. The X i matrices might themselves be dependent across i due to the factor structure. However, M G matrix will eliminate the factors, so that we are essentially restricting the dependence of β i between cross-sectional units. Assumption 10 is the rank condition for identification of f t. Pesaran (2006) shows that the mean group estimator is still consistent if this assumption does not hold. We conjecture that our results would also hold if this assumption does not hold, but with a modification of Assumption 9. The next result presents the asymptotic distribution of the HBC test. Theorem 2 Suppose that Assumptions 4-10 hold and that H 0 : E [ T 1 (X i M G X i )(β i β) ] = 0. Then as (, T ), ˆδ C Ω + C ˆδ C χ 2 q, where q k, with q the rank of E [ T 2 (X i M G X i )(β i β)(β i β) (X i M G X i ) ]. Proof. In Appendix B. otice that if we fail to reject the null hypothesis, then it may be appropriate to use the pooled estimator. The limiting distribution of the test in Theorem 2 is different from than in Theorem 1 for two reasons. First, for the HBC we require T to apply the central limit theorem to ˆδ C. Second, Ω C converges to E [ T 2 (X i M G X i )(β i β)(β i β) (X i M G X i ) ]. The rank of this matrix may vary from 0 to k. For example, in the extreme case where there is no heterogeneity, β i = β for each i, and the rank is 0. The statistic would converge to 0, so that critical values for a χ 2 k would be conservative. Of course, we would correctly fail to reject that null hypothesis that heterogeneity does not cause bias, as there is no heterogeneity. 22

To summarize, practical implementation of the test is straightforward. The test is computed in a similar way to the HB test, but with the addition of cross-sectional averages in the regressions for each unit. One compares the HBC statistic to a χ 2 k distribution. The test will reject the null as there is more heterogeneity bias. In addition, the test correctly becomes more conservative if there are fewer parameters in the model that exhibit heterogeneity. 4 Monte Carlo We use Monte Carlo simulations to assess the performance of the methods discussed in the previous sections. Our simulations allow for varying degrees of importance assigned to individual slope heterogeneity. The main objective is to assess the finite sample performance of the HB and HBC tests. We evaluate them in terms of size and power. We also compare the standard OLS (without fixed effects), OLS-FE, MG, and MGC estimators in terms of inferential bias and efficiency. Our goal is to illustrate the importance of the individual heterogeneity bias, and its impact on different estimation methods under various data scenarios. In doing so, we restrict our attention to the following cases: (1) no heterogeneity bias; (2) heterogeneity affecting one regressor; (3) heterogeneity affecting both regressors. The first case illustrates the case in which OLS-FE is unbiased and gives the size of the tests. The second case shows that one coefficient can be biased while the other remains unbiased. The last case is more general, as both coefficients can be biased. The last two cases provide the power of the tests. 4.1 Monte Carlo Designs We consider a simple data generating process (DGP). The variable y it is generated by the model y it = α i + θ i w it + γ i z it + u it, (15) 23

where α i is the individual-specific intercept term, while θ i and γ i are individual-specific slope coefficients associated with exogenous variables w it and z it, respectively. The regression error term, u it, is normally distributed with mean zero and variance one. As discussed in Section 2, fixed effects estimation of the population averages E(θ i ) and E(γ i ) will be biased if there is a non-zero covariance between θ i and the variance of w it, or if there is non-zero covariance between γ i and the variance of z it. We model the dependence in z it and γ i, and the heterogeneity in γ i as follows: z it = α i + ɛ z it and w it = 1 + ɛ w it, where ɛ z it (0, σ 2 zi), ɛ w it (0, σ 2 wi); σ 2 zi = 1 + v zi, σ 2 wi = 1 + v wi ; v wi v zi χ 2 1; α i (0, 1), u it (0, 1). We divide our experiments into three parts. In the first two parts main objective is to investigate the finite sample performance of the HB test, and in the third part we assess the HBC test. 6 In the first part, we set θ i = 1 for all individuals in order to isolate the effect of just one of the variables having a heterogeneous effect on y it. The parameter γ i, representing the individual-specific slope, is generated as γ i = 1 + 2c cσ 2 zi + dɛ γ i, where ɛ γ i is (0, 1) and c = 0, ±0.5, ±1. The parameter d is given by d = (2 2c 2 ) 1/2 so 6 We conducted other experiments where the errors were serially correlated. The results were similar and are available upon request. 24

that the variance of γ i equals 2 regardless of the correlation between σ 2 zi and γ i. The experiments use the parameter c to modulate the importance of individual slope heterogeneity. When c = 0, there is heterogeneity in γ i coming from ɛ γ i. However, since c = 0, the heterogeneity in the slope coefficient γ i is not correlated with the variance in the regressor z it, and the fixed effects estimator provides an unbiased estimate of E(γ i ). As c increases in magnitude, the covariance between γ i and σ 2 zi increases, leading to biases in the fixed effects estimation of E(γ i ). For example, when c = 1, the covariance between γ i and σ 2 zi is 2, resulting in negative bias of the fixed effects estimator. Intuitively, the fixed effects estimator assigns more weight to individuals that have smaller slope coefficients γ i. When c = 1, we have the opposite effect, and the fixed effects estimator will be positively biased. Therefore, the parameter c is very important. Under the null hypothesis of slope homogeneity c = 0, and we obtain the size of the HB test. Then, c 0 we have slope heterogeneity that causes bias in OLS-FE, and we are able to examine the power of the proposed HB test. In the second part of the experiment, we also allow θ i to be heterogeneous, and generated by θ i = 1 + 2c cσ 2 wi + dɛ θ i, where ɛ θ i (0, 1). In this set of simulations, by controlling the constant c, we are examining the size and power of the tests. Again, when c = 0 we recover size, when c 0 we have power of the tests. Finally, in the third part, we explore size and power of the HBC test by allowing for a factor structure to generate cross-sectional dependence in the errors and endogeneity. In particular, we use the DGP model as in equation (15). In this case, we maintain the same format as in the first case and set θ i = 1 for all individuals. The covariate z it has z it = α i +ɛ z it with ɛ z it (0, σ 2 zi), σ 2 zi = 1 + v zi, v zi χ 2 1. evertheless we introduce the structure of w it generates cross-sectional dependence in the errors and endogeneity as follows w it = 1 + λ i f t + ɛ w it, and u it = φ i f t + ɛ it, λ i = (1, 1), and φ i = (1, 1) + ξ i, 25

where f t is a 2 1 vector of iid standard normal variables, and ξ i is a 2 1 vector of iid standard normal variables. The presence of the factor in the variable w it causes endogeneity between u it and w it. Finally, as in the first case, the parameter γ i, representing the indivual-specific slope, is generated as γ i = 1 + 2c cσ 2 zi + dɛ γ i, where ɛ γ i is (0, 1) and c = 0, ±0.5, ±1, and the parameter d is given by d = (2 2c 2 ) 1/2. Once again, the parameter c controls the size and the power of the test. To benchmark our results, we estimate the model using traditional OLS, where all individuals are (incorrectly) assumed to have the same intercept and slopes. Under the data generating process above, the OLS estimate of E(γ i ) will be biased since the individual-specific intercept terms are correlated with z it, and OLS is unable to account for individual effects and cross-sectional slope heterogeneity. We also report results for the OLS-FE model that allows for individual intercepts, but as is standard, assumes that the slopes are homogeneous. Finally, we include the mean group estimators. The MG is presented for all comparisons, it allows for individual-specific intercepts as well as slope coefficients. The MGC is presented for the third part of the exercise, and it allows for the cross-sectional dependence. 4.2 Monte Carlo Results We examine the finite sample properties of the methods considering different DGP. We use = 500 for the number of individuals and set the number of time observations, T, alternatively, to 5, 10, 20, and 30. The number of replications in each experiment is 5,000. 7 We first report the results for evaluation of the estimators. Then, we describe the results for the tests. 7 Since the data used in many empirical applications face limitations on the times series dimension, T, our main presentation focuses on variations along this dimension. However, in unreported tables we also experiment with variations in the number of individuals, (e.g., = 100 and = 1,000). These alternative experiments lead to similar inferences and are readily available from the authors. 26

4.2.1 Results For Bias And RMSE Results For Experimental Design 1 Table 1 reports the bias and RMSE associated with each of the estimators considered in the first experimental design. In the absence of estimation biases, we would expect to find E(θ i ) = 1 and E(γ i ) = 0. Deviations from these benchmarks measure the degree of bias in the estimated coefficient. Estimators with better inference properties should present low RMSEs. Table 1 About Here As predicted, the OLS estimator is biased even when c = 0, and they produce similar results. For example, with T = 5 the bias for E(γ i ) under OLS is 0.334. As the time dimension, T, increases, the OLS bias does not decline. In sharp contrast, the bias under OLS-FE and MG is virtually zero; less than 0.001 in both cases. While the OLS-FE and MG estimators have similar, negligible biases, the MG has the smallest RMSE. The reason that OLS-FE does not have the smallest RMSE for the case of c = 0 is that it is not efficient even though it is unbiased. The intuition is that if OLS is appropriate in a model with heterogeneity only in intercepts, the random effects model is more efficient. Even though OLS-FE is consistent (unbiased) when c = 0, it is not efficient. Moreover, MG has smaller variance for this case even though its use is not necessary. ow we allow for c 0. When c = 0.5, the covariance between γ i and σzi 2 is positive and we should see a positive bias in the OLS-FE estimator. This is what we see in Table 1. The estimated values of E(γ i ) under OLS-FE are now positively biased with values 0.493, 0.496, 0.494, and 0.497 for T = 5, 10, 20, and 30, respectively. The bias is insensitive by increases in the times series dimension. At the same time, the OLS estimate is still biased and have the largest RMSEs. The MG estimator performs uniformly better than all of the other estimators, both in terms of bias magnitude and RMSE. Indeed, the MG method produces virtually unbiased estimates. 27

When c = 0.5, we see a negative bias in E(γ i ) for OLS-FE. In this case, the bias in OLS is smaller than when c = 0.5, which is an artifact of conflicting bias directions from the intercept effects, α i, and the slope effects, γ i. A more interesting observation is that the sign of the OLS-FE bias changes when c = 0.5. This change highlights the inferential instability of the OLS-FE estimator in the presence of individual slope heterogeneity. Finally, as we increase the magnitude of the correlation between γ i and σzi 2 via c = 1, the bias for OLS-FE is approximately 1, while that of the MG remains virtually equal to zero. That is, under this form of individual slope heterogeneity the OLS-FE suffers from a severe attenuation-like bias that assigns no relevance to estimates associated with the affected variable, even though the variable has a strong predictive power in the true economic model. For c = 1, the sign of the OLS-FE bias changes, but the magnitudes are similar to those found when c = 1. That is, estimates associated with the affected variable are grossly overestimated and appear to be twice as important as they are in the true model. otably, the magnitudes of these biases are insensitive to T. Results For Experimental Design 2 We now change the data generating process by also letting θ i vary across individuals. This new experiment allows one to have correlation between both slope parameters of the model and the variance of the data. The results of these experiments appear in Table 2. Table 2 About Here When c = 0, by design, the variable w it is uncorrelated with the individual-specific intercept, α i, so that E(θ i ) should be unbiased. The results in Table 2 confirm this prediction and show approximately unbiased estimates for E(θ i ) for the OLS, OLS-FE, and MG estimators. There is, however, a significant bias for E(γ i ) under OLS estimation, and this bias is insensitive to the times series dimension. Finally, both OLS-FE and MG are approximately 28