-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract effects from the tw.cre.CREEstimator() function #4
Comments
Hi Nicolas, Sorry it has taken so long for me to write a response. In the almost year since you originally asked this I still haven't taken a deep look into the theory of the CRE estimator, and consequently haven't looked at the CRE code. However, I finally just took a quick scan through the code. From my minimal understanding of the how the CRE estimator works, and what I've gathered from looking through the code, the estimator is computing something like a worker fixed effect by grouping together all workers who move between the same pair of firm clusters in consecutive periods, i.e. it basically does groupby(['g1', 'g2']) and removes the mean wage at the cluster level, and the average over this residual is what it estimates as a sort of worker effect. This average residual worker effect at the cluster level is then saved in the class attribute In another step, the estimator takes another residual, this time also removing this pseudo-worker effect. It then computes, for each observation, the average wage of workers at the same firm but removing the wages of workers who move to the same cluster (e.g. if a worker is at firm 0 and moves to cluster 2, then this mean will be over workers at firm 0 who move to a cluster other than cluster 2). These variables are called However, I believe the main purpose of the CRE estimator is to provide an alternative estimation of I apologize if my understanding of this is completely wrong, but I suggest you take a look through the code yourself, since it's much easier to understand than I originally expected. Please let me know if this helps answer your question, and if you have other questions. |
I have closed issue #2 as it concerned the Fixed Effects estimator. I had a side note in this issue regarding individual effects for the CRE estimator.
I am not 100% sure if I get the econometrics right here but is it possible the extract individual effects also for the CRE estimator? I suppose that is what the tw.cre.CREEstimator() function is designed for.
The text was updated successfully, but these errors were encountered: