Environmental Regulation, Farmer Adaptation, and Grain Output: Evidence from China’s Straw Burning Ban

Published: 18 June 2026| Version 2 | DOI: 10.17632/yn65m9dm87.2
Contributor:
Jiayin Tan

Description

This dataset provides the public replication package for the article “Environmental Regulation, Farmer Adaptation, and Grain Output: Evidence from China’s Straw Burning Ban.” The study examines how China’s straw burning ban affected household-level grain output using a staggered difference-in-differences design and household panel data for 2009–2018. The original household and village microdata used in the article are from the China National Fixed-Point Survey administered by the Ministry of Agriculture and Rural Affairs of China. These data are restricted government-managed research-use data and cannot be publicly shared, copied, exported, or redistributed. Therefore, this public package provides synthetic replacements for the restricted household and village data. The synthetic data are intended to document the data structure, variable names, code workflow, and computational procedures. They are not intended to reproduce the exact coefficients, standard errors, or statistical significance reported in the article. Exact numerical replication requires authorized onsite access to the original restricted household and village data. The package includes synthetic household-level and village-level data files, public provincial-level data compiled from published statistical and environmental sources, the merged analysis dataset, Stata do-files for data construction and analysis, output tables and figures, and a README file. The main public workflow first runs `merging_file.do` to construct `Dataset.dta` from the included synthetic and provincial input files, and then runs `StrawBurningBan_Paper_Final.do` to generate the packaged tables and figures. `PlaceboTest.dta` is regenerated by the main analysis do-file and used for the placebo test figure.

Files

Steps to reproduce

1. Download all files from this Mendeley Data repository and place them in a single working directory. 2. Open Stata 17.0 or later, preferably Stata/MP, and set the working directory to the folder containing the replication files. 3. Install the required user-written Stata packages before running the do-files: ```stata ssc install reghdfe, replace ssc install outreg2, replace ssc install sum2docx, replace ssc install eventdd, replace ssc install eventstudyinteract, replace ssc install event_plot, replace ssc install csdid, replace ssc install did_imputation, replace ssc install permute, replace ssc install psmatch2, replace ssc install twowayfeweights, replace ``` 4. Run the data construction do-file: ```stata do merging_file.do ``` This combines the included synthetic household data, synthetic village controls, and provincial controls, and saves the merged analysis dataset as `Dataset.dta`. 5. Run the analysis do-file: ```stata do StrawBurningBan_Paper_Final.do ``` This do-file produces the packaged tables and figures from `Dataset.dta` and `synthetic_Village_data.dta`. It also regenerates `PlaceboTest.dta` for the placebo test and uses it to produce Figure 3. 6. The generated output files will be saved in the working directory. The included `tables/` and `figures/` folders provide packaged output files for reference. Because the public package uses synthetic replacements for restricted household and village data, generated estimates should be used to verify the data structure, variable names, code workflow, and computational procedures rather than to check exact numerical equality with the published article. Exact numerical replication requires authorized onsite access to the original restricted household and village data.

Institutions

Categories

Agricultural Economics, Agricultural Policy

Licence