borusyak / shift-share Goto Github PK
View Code? Open in Web Editor NEWReplication package and code for "Quasi-Experimental Shift-Share Designs"
License: GNU General Public License v3.0
Replication package and code for "Quasi-Experimental Shift-Share Designs"
License: GNU General Public License v3.0
Hi Kirill,
I am planning to use the package to run SSIV regressions. I read the paper, and if I understood correctly, the package provides a way to generate equivalent estimates considering shock-level and location-level regressions.
I didn't get this using my own data. To test whether I did something wrong, I ran two regressions using the ADH data provided in the replication package. Following as closely as possible what the help file says, I ran the following regressions:
At the location-level:
use location_level, clear
ivreg2 y (x = z) year t2 Lsh_manuf
Using the package to get a shock-level dataset:
ssaggregate y x z l_sh_routine33, n(sic87dd) t(year) s(ind_share) sfile(Lshares) l(czone) controls("t2 Lsh_manuf")
replace sic87dd = 0 if missing(sic87dd)
merge 1:1 sic87dd year using shocks, assert(1 3) nogen
merge m:1 sic87dd using industries, assert(1 3) nogen
foreach v of varlist g year sic3 {
replace `v'= 0 if sic87dd == 0
}
ivreg2 y (x=g) year [aw=s_n], r
If I understood correctly, the two regressions should have the same estimate for the coefficient on x. What I get instead are -.27 and -.19.
Did I understand the paper's result incorrectly or am I running the wrong regression?
Thanks a lot for the awesome package!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.