Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Replication Package for Kasahara and Zhou (Journal of Health Economics)

Overview

Paper: "Gender-Specific Effects of Prenatal Famine Exposure on Educational Attainment: Accounting for Selective Mortality"

Authors: Hiroyuki Kasahara and Wenna Zhou

Journal: Journal of Health Economics (accepted)

arXiv: 2603.01496

This package provides code and data to replicate all tables and figures in the paper. Because the analysis dataset is derived from restricted-access microdata, replicators must obtain the raw data from original sources before running the code. See the Data Availability Statement below.


Data Availability Statement

Restricted/External Data

  • CFPS 2010 microdata. Public with free registration at https://cfpsdata.pku.edu.cn. Registration typically approved within 1 week. No cost. Files required: cfps2010adult_201906.dta and cfps2010famconf_report_nat072016.dta.

  • CFPS county concordance. Restricted. Apply via CFPS data portal (https://cfpsdata.pku.edu.cn); approval may take 2--4 weeks. Contact: CFPS data team at isss@pku.edu.cn.

  • KasaharaZhouJHEdata.dta (analysis dataset). Not redistributable because it contains restricted CFPS county identifiers. Generated by running scripts 01_cleanEDR.do through 03_cleanCFPS.do after obtaining all raw data above.

  • Census 1990 (IPUMS). Public with free registration at https://www.ipums.org. Registration typically approved within 1--2 business days. No cost.

  • CHN_adm1.dta (province map shapefile). Derived from GADM (https://gadm.org). Free for academic use; redistribution not permitted. Download China (CHN) Level 1 boundaries (e.g., gadm41_CHN_1.shp) and convert with Stata's shp2dta command (see instructions below).

Data Provided in This Package

  • Death rate data (data/raw/DeathRate.dta): County-level death rates from Kasahara and Li (2020, JDE). Provided under CC BY 4.0 license.
  • Province controls (data/raw/prov_yr_control.dta): Province-year control variables. Provided under CC BY 4.0 license.
  • Province match (data/raw/matched_province.dta): Province matching file. Provided under CC BY 4.0 license.

Statement about Rights

  • Authors have legitimate access to and permission to use all data used in this manuscript.
  • All data included in this package can be redistributed. Data excluded from this package (CFPS microdata, CFPS concordance, GADM shapefile) cannot be redistributed due to third-party restrictions.

Data Availability and Provenance

Dataset Source Access
China Family Panel Studies (CFPS) 2010 Peking University Public (registration required); https://cfpsdata.pku.edu.cn
CFPS county identifier concordance CFPS restricted data Restricted (application required); https://cfpsdata.pku.edu.cn
China Census 1990 1% sample (IPUMS) Minnesota Population Center Public (registration required); https://www.ipums.org
County-level death rates Kasahara and Li (2020, JDE) Provided in this package
Province-year controls Authors Provided in this package
Province map shapefile (CHN_adm1.dta) GADM (https://gadm.org) Free for academic use (no redistribution)

Dataset List

File Provided Source Size
data/KasaharaZhouJHEdata.dta No Contains restricted CFPS county identifiers; generate by running scripts 01--03 5.7 MB
data/raw/DeathRate.dta Yes Kasahara and Li (2020) 577 KB
data/raw/prov_yr_control.dta Yes Authors 60 KB
data/raw/matched_province.dta Yes Authors 18 KB
data/raw/CHN_adm1.dta No GADM shapefile; see instructions below 16 KB
data/raw/cfps2010adult_201906.dta No CFPS ~395 MB
data/raw/cfps2010famconf_report_nat072016.dta No CFPS ~162 MB
data/raw/ipums_census90.dta No IPUMS ~598 MB
data/raw/CHN_adm1_shp.dta No Generated by shp2dta ~25 MB
Concordance/Concordance_CFPS.dta No CFPS restricted --
Concordance/CFPS_Census90concordanceSept2025.dta No CFPS restricted --

Computational Requirements

  • Software: Stata 15 or later (Stata SE or MP recommended)
  • Memory: ~4 GB RAM
  • Disk space: ~1.5 GB (with all raw data)
  • Runtime: Approximately 30--60 minutes for the full pipeline.

Required Stata Packages

Install the following packages before running the code:

ssc install reghdfe
ssc install ftools
ssc install outreg2
ssc install nsplit
ssc install spmap
ssc install shp2dta
grmap, activate

Description of Programs

The replication pipeline consists of five do files executed sequentially by master.do:

data/raw/DeathRate.dta ──> 01_cleanEDR.do ──> data/workdata/DeathRater2021.dta
                                               data/workdata/county_ave_edr.dta

data/raw/ipums_census90.dta ──> 02_cleanCensusCSSI.do ──> data/workdata/shrink.dta

CFPS raw data + Concordance + ──> 03_cleanCFPS.do ──> data/KasaharaZhouJHEdata.dta
  workdata from 01 & 02

data/KasaharaZhouJHEdata.dta ──> 04_table.do ──> output/CFPS_sib.*, CFPS_sib_I.*,
                                                   trend.*, CFPS_sib_rb.*,
                                                   CFPS_sibdy.*, rb.*, family_size.*

data/raw/ipums_census90.dta ──> 05_figure.do ──> output/Figure_1A.pdf,
data/raw/matched_province.dta                     output/Figure_1B.pdf,
                                                   output/AppendixFigure1.pdf
Script Description
config.do Defines all path globals. Edit this file to change the root directory.
master.do Runs the entire pipeline in order.
do/01_cleanEDR.do Cleans county-level death rate data and constructs the Excess Death Rate (EDR) measure.
do/02_cleanCensusCSSI.do Constructs the Cohort Size Shrinkage Index (CSSI) from the 1990 Census.
do/03_cleanCFPS.do Cleans CFPS microdata, merges EDR and CSSI, and produces the analysis dataset.
do/04_table.do Generates all tables (Tables 1--5, Appendix Tables C1--C2, E1--E3).
do/05_figure.do Generates Figure 1A, Figure 1B, and Appendix Figure 1.

Instructions to Replicators

  1. Clone the repository:

    git clone https://github.com/hkasahar/kasahara-zhou-jhe-famine.git
    cd kasahara-zhou-jhe-famine
  2. Install required Stata packages (see Computational Requirements above).

  3. Obtain external data:

    CFPS 2010 microdata:

    • Register at https://cfpsdata.pku.edu.cn and download:
      • cfps2010adult_201906.dta
      • cfps2010famconf_report_nat072016.dta
    • Place both files in data/raw/.

    CFPS county concordance (restricted):

    • See Concordance/README_restricted.md for instructions.
    • Place Concordance_CFPS.dta and CFPS_Census90concordanceSept2025.dta in Concordance/.

    China Census 1990 (IPUMS):

    • Register at https://www.ipums.org and request the China 1990 sample with variables: cn1990a_sex, cn1990a_birthy, cn1990a_birthm, cn1990a_hhtyap, geo3_cn1990, geo1_cn1990, geo2_cn1990.
    • Save as data/raw/ipums_census90.dta.

    Province map shapefile (GADM):

    • Download China (CHN) Level 1 boundaries from https://gadm.org (e.g., gadm41_CHN_1.shp).
    • Place the .shp and .dbf files in data/raw/, then run in Stata:
      cd data/raw
      shp2dta using gadm41_CHN_1, database(CHN_adm1) coordinates(CHN_adm1_shp)
  4. Run the full pipeline:

    cd "/path/to/kasahara-zhou-jhe-famine"
    do master.do
  5. Compare output against verification copies in output/.


Table/Figure Concordance

Paper Output Script Output File(s)
Table 1 (Summary Statistics) do/04_table.do Stata log output
Table 2 (Years of Education) do/04_table.do output/CFPS_sib.xml, output/CFPS_sib.txt
Table 3 (Illiteracy) do/04_table.do output/CFPS_sib_I.xml, output/CFPS_sib_I.txt
Table 4 (Trend Analysis) do/04_table.do output/trend.xml, output/trend.txt
Table 5 (Robustness) do/04_table.do output/CFPS_sib_rb.xml, output/CFPS_sib_rb.txt
Figure 1A (Cohort Size) do/05_figure.do output/Figure_1A.pdf
Figure 1B (Gender Ratio) do/05_figure.do output/Figure_1B.pdf
Appendix Table C1 do/04_table.do Stata log output
Appendix Table C2 do/04_table.do output/CFPS_sib.xml, output/CFPS_sib.txt
Appendix Table E1 do/04_table.do output/CFPS_sibdy.xml, output/CFPS_sibdy.txt
Appendix Table E2 do/04_table.do output/rb.xml, output/rb.txt
Appendix Table E3 do/04_table.do output/family_size.xml, output/family_size.txt
Appendix Figure 1 (Map) do/05_figure.do output/AppendixFigure1.pdf

References

  • Kasahara, H. and W. Zhou. "Gender-Specific Effects of Prenatal Famine Exposure on Educational Attainment: Accounting for Selective Mortality." Journal of Health Economics (accepted). arXiv: 2603.01496.
  • Kasahara, H. and H. Li (2020). "Identification of Regression Models with a Misclassified and Endogenous Binary Regressor." Journal of Development Economics, 146, 102480.
  • Institute of Social Science Survey. China Family Panel Studies (CFPS) 2010. Peking University. https://cfpsdata.pku.edu.cn.
  • Minnesota Population Center. Integrated Public Use Microdata Series, International: Version 7.3 [dataset]. Minneapolis, MN: IPUMS. https://doi.org/10.18128/D020.V7.3.
  • GADM. Database of Global Administrative Areas, version 4.1. https://gadm.org.

Contact

For questions about this replication package: Hiroyuki Kasahara (hkasahar@mail.ubc.ca)

About

Replication package for Kasahara & Zhou — Gender-Specific Effects of Prenatal Famine Exposure on Educational Attainment (Journal of Health Economics)

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages