GithubHelp home page GithubHelp logo

liulinxmu / soep-unemployment-health-spillovers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from allisterh/soep-unemployment-health-spillovers

0.0 0.0 0.0 113 KB

Replication code for Everding and Marcus (2020, Health Economics), combining DiD estimation, Lasso regressions, and entropy balancing

Home Page: https://doi.org/10.1002/hec.3961

License: MIT License

Stata 100.00%

soep-unemployment-health-spillovers's Introduction

soep-unemployment-health-spillovers

Replication code for Everding and Marcus (2020, Health Economics).

Specifically, this study examines the causal effect of unemployment on spousal smoking behavior. For this purpose, we focus on involuntary entries into unemployment, combining difference-in-differences (DiD) estimation with a matching strategy based on entropy balancing (EB, Hainmueller 2012). For selecting control variables, we complement our econometric approach with two different procedures for control variable selection; a conventional approach based on previous studies and economic intuition as well as a machine learning approach based on Lasso regressions, the post-double-selection method (PDS, Belloni et al. 2014).

Main do-file

master_spousal_ue.do defines all relevant macros, the folder structure, and executes all files sequentially

Additional do-files

The actual steps of data pre-processing and analyses are divided into several additional do-files ("script" files in Stata), as described in the following:

gen_spousal_ue.do pulls the data

trans_spousal_ue.do transforms the data and generates the relevant variables

candidatevar_spousal_ue.do constructs and adds leads, lags, transformed variables (polynomials and log. trans.) and imputation flags

pds_spousal_ue.do fits Lasso regressions (PDS, see Belloni et al. 2014) on candidate variables

pdsmech_spousal_ue.do fits Lasso regressions and selects controls for analysis of mechanisms (i.e. alternative outcomes)

main-analysis1_spousal_ue.do runs main analysis (with EB, see Hainmueller 2012), part 1 (without post-double selection)

main-analysis2_spousal_ue.do runs main analysis (with EB), part 2 (only post-double selection)

desc-stats1_spousal_ue.do generates table for descriptive statistics and matching quality, part 1

rob-analysis-pds_spousal_ue.do performs all post-double selection robustness analyses

het-analysis1_spousal_ue.do investigates treatment effect heterogeneity by smoking status at baseline, part 1

het-analysis2_spousal_ue.do investigates treatment effect heterogeneity by smoking status at baseline, part 2

mech_spousal_ue.do runs analysis of mechanisms (with PDS), part 1

mech2_spousal_ue.do runs analysis of mechanisms (without PDS), part 2

desc-stats2_spousal_ue.do generates table for descriptive statistics and matching quality, part 2

Data

The main data source is the German Socio-Economic Panel (SOEP, version 33).

See https://www.diw.de/soep for detailed information on data access options.

References

Belloni, A., V. Chernozhukov, and C. Hansen. 2014. Inference on treatment effects after selection among high-dimensional controls. The Review of Economic Studies, 81(2), 608-650.

Everding, J. and J. Marcus. 2020. The effect of unemployment on the smoking behavior of couples. Health Economics, 29(2), 154-170.

Hainmueller, J. 2012. Entropy balancing for causal effects: A multivariate reweighting method to produce balanced samples in observational studies. Political Analysis, 20(1), 25-46.

soep-unemployment-health-spillovers's People

Contributors

jeverding avatar

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.