In: Advanced Math
How would you control for these person-specific and time-specific effects in a panel data regression? d) Can the regression be used to estimate the effect of gender on an individual’s earnings? Explain. e) Can the regression be used to estimate the effect of the national unemployment rate on an individual’s earnings? Explain. f) In the context of the regression you suggested for part (c), explain why the regression error for a given individual might be serially correlated. g) In the context of the regression you suggested for part (c), explain why the regression error across individuals for a given point in time might be correlated.
In statistics and econometrics, panel data or longitudinal data are multi-dimensional data involving measurements over time. Panel data contain observations of multiple phenomena obtained over multiple time periods for the same firms or individuals.
In panel data the same cross-sectional unit (industry, firm and country) is surveyed over time, so we have data which is pooled over space as well as time.
Reasons for using Panel Data
1. Panel data can take explicit account of individual-specific heterogeneity (“individual” here means related to the microunit)
2. By combining data in two dimensions, panel data gives more data variation, less collinearity and more degrees of freedom.
3. Panel data is better suited than cross-sectional data for studying the dynamics of change. For example it is well suited to understanding transitionbehaviour –for example company bankruptcy or merger.
4. It is better in detecting and measuring the effects which cannot be observed in either cross-section or time-series data.
5. Panel data enables the study of more complex behavioural models –for example the effects of technological change, or economic cycles.
6. Panel data can minimise the effects of aggregation bias, from aggregating firms into broad groups.
If all the cross-sectional units have the same number of time series observations the panel is balanced, if not it is unbalanced.
A matrix of balanced panel data observations on variable y, N cross-sectional observations, T time series observations.
Suppose y is investment and xis a measure of profit. We have i= 1…n companies and t= 1…T time periods. Suppose we specify a simple econometric model which says that investment depends on profit:
Estimation of (1) depends on the assumptions that we make about the intercept (a0), the slope coefficient (a1) and the error term (uit).
Several possible assumptions can be made in order to estimate (1):
1. Let us assume, the intercept and slope coefficients are constant across time and firms and the error term captures differences over time and over firms.
2. The slope coefficient is constant but the intercept varies over firms.
3. The slope coefficient is constant but the intercept varies over firms and over time.
4. All coefficients (intercept and slope) vary over firms.
5. The intercept as well as the slope vary over firms and time.
Pooled regression by OLS
This is estimation option 1 on the list. But pooled regression may result in heterogeneity bias:
Fixed Effects Estimation:
The above estimate suggests that a better way to model the data would be to allow each group (firm) to have its own intercept:
This is know as the (One Way) Fixed Effects Model.
How do we estimate it?
The simplest way to allow each firm to have its own intercept is to create a set of dummy (binary) variables, one for each firm, and include them as regressor’s.
Consequently, this form of estimation is also known as Least Squares Dummy Variables (LSDV). (Note that there is no constant in this regression.)
However if there are a lot of groups (firms) then it becomes very tedious to create all the dummy variables needed. Some econometric software (e.g. Limdep) which is able to automate. Hence the method used is called the covariance estimator and it works on “differencing” out the fixed effect by expressing variables as deviations from their group means,
So:
A further extension is to allow the intercept to vary across the different time periods (Two Way Fixed Effects):
The time dummy coefficients can allow the regression function to shift over time to capture changes in technology, government regulation, tax policy, external influences (wars…) etc.
Allowing intercept and slope coefficients to vary across groups
If we have a sufficient long time dimension to the panel, we could of course just estimate a separate OLS regression for each group (firm). If the number of firms (cross-sectional dimension) is small, then we could estimate a single regression with interactions between xand the group dummy variables D.
Random Effects Estimation
The fixed effects model assumes that each group (firm) has a non-stochastic group-specific component to y.
Including dummy variables is a way of controlling for unobservable effects on y.
But these unobservable effects may be stochastic (i.e. random). The Random Effects Model attempts to deal with this:
Here the unobservable component, (vi), is treated as a component of the random error term. (vi) is the element of the error which varies between groups but not within groups. (εit) is the element of the error which varies over group and time.
We assume that:
((We could also introduce an error component which varies across time periods but not across groups –two way random effects.)
Estimation of the random effects model cannot be performed by OLS –instead a technique known as generalised least squares (GLS) must be used.
Choosing between Fixed Effects (FE) and Random Effects (RE)
1. With large Tand small Nthere is likely to be little difference, so FE is preferable as it is easier to compute
2. With large Nand small T, estimates can differ significantly. If the cross-sectional groups are a random sample of the population RE is preferable. If not the FE is preferable.
3. If the error component, vi, is correlated with xthen RE is biased, but FE is not.
4. For large Nand small Tand if the assumptions behind RE hold then RE is more efficient than FE.
Hausman test:
Tests for the statistical significance of the difference between the coefficient estimates obtained by FE and by RE, under then null hypothesis that the RE estimates are efficient and consistent, and FE estimates are inefficient.
The test has a Wald test form, and is usually reported in Chi2form with k-1 degrees of freedom (k is the number of regressors).
If W < critical value then random effects is the preferred estimator.
Autocorrelation:
Although different to autocorrelation using the usual OLS models, a version of the Durbin-Watson test can be used in the usual way. (E-views reports this).
To remedy autocorrelation we can use the usual methods, such as the Error Correction Model.
Dynamic Models’ are also often used, which basically involves adding a lagged dependent variable.
Heteroskedasticity:
•Here there is a cross-section component to panel data, there will always be a potential for heteroskedasticity.
•Never the less there are various tests for heteroskedastcity, with autocorrelation and there is a tendency to automatically use adjusted standard errors, which removes the problem.
•With heteroskedasticity, it is usually White’s adjusted standard errors that are used.
Example:
The data consists of 20 countries over 10 years of annual data, giving 200 observations in all (T=200). This produces the following result, where stock prices are regressed against expenditure on research (r ):
The results are interpreted in the usual way, however you would need to decide whether you wished to use fixed or random effects in this model.
This also includes random effects, which uses the Hausman test to determine if the random effects applies. If the null hypothesis is rejected, then the fixed effects model is more appropriate.
Hence the mentioned is the example of a basic OLS panel data model, you can apply all the other models to panel data too, although it usually requires separate tests. (i.e. the test for co-integration)
So finally the conclusion and final takeaways from this is:
Panel data is a method for estimating data which is both time series and cross sectional
It has both advantages but also disadvantages over OLS estimation
It applies to many different techniques, such as tests for stationarity.