Giter VIP home page Giter VIP logo

shift-share's People

Contributors

borusyak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

shift-share's Issues

Which regressions to run to get equivalence result

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.