[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Lopez Cordova, Jose E." <JOSELC@iadb.org> |

To |
"'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu> |

Subject |
st: -xtivreg, fe- and -cluster- option |

Date |
Tue, 19 Nov 2002 09:10:42 -0500 |

Title:

Dear Statalisters,

I have an unbalanced panel of manufacturing plants on which I need to run fixed effects, two-stage least squares, correcting the standard errors to account for the fact that I have some grouped (industry-level) regressors. Unfortunately, Stata's --xtivreg, fe-- command does not include the --cluster()-- option available in other regression commands, such as --reg--, --areg-- or --ivreg--.

I have been trying the strategy below to attack this problem. I would like to get your informed opinion on whether my approach is valid as well as more specific help on how to correct my standard errors.

STRATEGY:

STEP 1. First, as in the --xtreg, fe-- or --areg-- commands, I transform the LHS and RHS variables, as well as the instruments, as follows:

z~(it)= z(it) - z(i.) + z(..)

where z~(it) (z-tilde) is the transformed z variable for plant i in period t; z(i.) is the mean of z for plant i and z(..) is the overall mean of z.

STEP 2. Ignoring the more difficult case of 2SLS, I could then run OLS on the transformed model:

y~(it)= Bo + B1 x~(it) + u(it)

using the --reg, cluster-- command. I would need to correct my standard errors to account for the effect that the number of panels that appear in my original data has on the degrees of freedom.

NOTE: The command --areg, cluster-- follows steps 1 and 2, as far as I understand.

STEP 3. When 2SLS is needed, I am assuming that using --ivreg, cluster-- on the transformed model and IVs, correcting the standard errors, is a valid approach.

I have followed this strategy for the case without 2SLS, using a balanced panel, and I can reproduce Stata's --areg, cluster-- results. However, I am still having problems replicating these results when I use an unbalanced panel. My guess is that I am not properly accounting for differences in the time dimension across panels when I correct my standard errors; I'm also guessing this might not be too difficult to fix.

I also applied the above strategy to the case of 2SLS, with a balanced panel, using -ivreg, cluster- on the transformed variables, but I have no way to compare my estimates with any existing Stata output (which is precisely the problem I am trying to solve).

My questions are:

1. Do you think the above strategy is sensible? Or are there other issues that I am ignoring that make it unviable? I am hesitant to continue ironing out some of the remaining problems if my approach is flawed.

2. If my approach is promising, do you have any suggestion as to how to correct standard errors for changes in the degrees of freedom that results from the panel structure of my data? Along the same lines, what kind of adjustment do I need to make to account for unbalance panels?

Thanks in advance for your help.

J. Ernesto Lopez-Cordova

--------------------------------------------------------------------------

Economist

Integration, Trade, and Hemispheric Issues Division

Inter-American Development Bank

1300 New York Ave. NW

Stop W0608

Washington, DC 20577

U.S.A.

Tel: (202)623-2469

Fax: (202)623-2169

Email: joselc@iadb.org

--------------------------------------------------------------------------

- Prev by Date:
**st: Column and row maximums** - Next by Date:
**Re: st: Column and row maximums** - Previous by thread:
**st: Column and row maximums** - Next by thread:
**st: rename** - Index(es):

© Copyright 1996–2017 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |