Genetically Engineered Crop Adoption Support Yields and Cultivation under Climate Change
Authors/Creators
Description
The code files in this object with extension ".m" are written in MATLAB R2024b, the ones with entension ".r(.R)" are written in R version 4.5.1, and the ones with extension ".do" are written in StataSE 17.0.
The data for land use model estimated in the main text is "land_model_data.dta". Using this data and run "land_model_main_without_int.do" will generate result provided in Table 3 in the Extended Data for Main model results. Using this data and run "land_model_main_with_int.do" will generate result provided in Table 4 in the Extended Data for Main model results. Using this data and run "centroid_prediction.do" will generate centroid prediction results used in Figure 4 of the main text. Using this data and run "land_use_prediction.do" will generate land use prediction data used in Figure 5 of the main text, and the predicted land use difference between with GE and without GE in 2020 is stored in "2020diff_land_pre.csv". Using this data and run "Centroid_bootstrap.do" will generate the bootstrap results for centroid latitude and longitude prediction differences displayed in Table 5 in the Extended Data. All p-value of wald z-tests can be found in the regresion result tables in Stata after the run.
Before running the yield model codes in Stata, "reg2hdfespatial.ado" needs to be put in the ado folder of Stata. The data for yield model estimated in the main text is "yield_model_data.dta". Using this data and run "yield_model_stage3" will generate result provided in Table 1 in the Extended Data for yield model results. Using this data and run "yield_model_stage2" will generate result provided in Table 2 in the Extended Data for yield risk model results. Using this data and run "corn_yield_prediction.do", "soybean_yield_prediction.do", "cotton_yield_prediction.do" separately will generate yield prediction data and 95%CI used in Figure 3 of the main text. Using this data and run "corn_yield_risk_prediction.do", "soybean_yield_risk_prediction.do", "cotton_yield_risk_prediction.do" separately will generate variance of log yield prediction data and 95%CI used in Figure 3 of the main text. All p-value of wald t-tests can be found in the regresion result tables in Stata after the run.
"centroid_calc.do" generates historical land use centroid for corn, soybean and cotton used in Figure 2 of the main text. The calculated centroid is embedded in "Corn_real_centroid.R", "Soybean_real_centroid.R" and "Cotton_real_centroid.R" to produce Panel A, B and C of Figure 2 in the main text.
"Historical_land_use_change.do" generate historical land use percentage change data for corn, soybean and cotton used in Figure 1 of the main text. The data is stored in "data7820.csv". Using this data and run "Land_use_percentage_change.r" to produce Panel A, B and C of Figure 1 in the main text.
"Corn_predicted_centroids.r", "Soybean_predicted_centroids.r" and "Cotton_predicted_centroids.r" have predicted corn, soybean and cotton embedded in them respectively. Run them separately to get Panel A, B, and C of Figure 4 in the main text.
Run "Land_use_diff_predicted.r" using data stored in "2020diff_land_pre.csv" to get Panels in Figure 5 and Panels in Extended Data Figure 6.
Any data and code used in the robustness tests can be posted upon request.
Files
2020diff_land_pre.csv
Files
(265.7 MB)
| Name | Size | |
|---|---|---|
|
md5:f49449c338b2a36dbaa2f292948de058
|
235.0 kB | Preview Download |
|
md5:f6d1b8eb82ee9aaa44558cbe08cbac81
|
4.6 kB | Download |
|
md5:2ecbe5981e654bae070b8a2d0e203b13
|
3.8 kB | Download |
|
md5:85dbf6e8a40cab7077f4aa9963df73db
|
5.6 kB | Download |
|
md5:282cad48ae740cc07a269abeca6a408b
|
3.5 kB | Download |
|
md5:33b66fd72210f8caedb546169f72a391
|
1.9 kB | Download |
|
md5:9a5f66b976edf9f744ae518a59191cd3
|
7.2 kB | Download |
|
md5:d11961cd701449185f9235554fee71f9
|
7.1 kB | Download |
|
md5:9845b6c245dde8ba7dacc9454121e92b
|
3.6 kB | Download |
|
md5:220202b8544bbc53500713c87525c422
|
1.7 kB | Download |
|
md5:ef00aa77d920b5242f857fec0dc5c4ef
|
7.3 kB | Download |
|
md5:db57a0b83679f4c2286be7b711c9a8fe
|
7.2 kB | Download |
|
md5:123a181849aca549a334ad1e343ab1fb
|
81.7 kB | Preview Download |
|
md5:af826a429d10779135eacc26e179ddbd
|
728 Bytes | Download |
|
md5:aafd61592d5770c61c9303edbc3c89e8
|
133.6 MB | Download |
|
md5:0700316175cb4d83db51411167bf5dcc
|
3.3 kB | Download |
|
md5:88b935543fb98aeb70a6842e94ef594d
|
1.3 kB | Download |
|
md5:7e1922fc0ade493560bacf67615344fb
|
3.6 kB | Download |
|
md5:4d212c9ddd442c02f0f1a65c11673b9f
|
2.2 kB | Download |
|
md5:7c6c10ae6a760d2d1b83df9ff5c26f7a
|
1.8 kB | Download |
|
md5:7c3675c23db8bd1c78a53ca6041e17ca
|
5.9 kB | Download |
|
md5:e23f9ba3c7e017c67a732285e0c14162
|
3.6 kB | Download |
|
md5:334f198252e89030cea79602aacd7da6
|
1.7 kB | Download |
|
md5:9145019b123e604f645fc8b48bc67f81
|
7.4 kB | Download |
|
md5:bb63975487a276d36228857694aa8ce0
|
7.3 kB | Download |
|
md5:8fab38c3c66cacb8243c2e1f269b47ef
|
131.6 MB | Download |
|
md5:125090b7ffe28a7e46d8d73ba4375cc8
|
11.9 kB | Download |
|
md5:743f888c2c158998b6fe632e12c04bbb
|
18.7 kB | Download |
Additional details
Identifiers
Dates
- Accepted
-
2026-08-07
References
- Becker, R. A., Wilks, A. R., Brownrigg, R., Minka, T.P. & Deckmyn, A. maps: Draw Geographical Maps. https://doi.org/10.32614/CRAN.package.maps (2025).
- Baum-Snow, N. & Han, L. The Microgeography of Housing Supply. J. Polit. Econ. 132, 1897-1946 (2024).