Impact of digital economy on innovation and entrepreneurship: Evidence from China
Description
This file outlines the process for replicating the econometric analysis presented in the study: Impact of digital economy on innovation and entrepreneurship: Evidence from China. Below is an explanation of the software, datasets, and code used. This folder contains the replication materials for the empirical analyses presented in the paper. The package follows the "DATA" and "CODE" structure requested by the Data Editor: EM_R6_Revised/ ├── README.md (this file) ├── Revised_Manuscript_R6.docx (revised manuscript) ├── Response_to_Reviewers_R6.docx (point-by-point response to the Editor, Reviewers and Data Editor) ├── Data/ │ ├── Raw Data/ │ │ ├── Raw.dta merged raw panel (all source variables, 2011-2023) │ │ ├── Grouping.dta city grouping variables (scale, resource, location) │ │ ├── Appendix.dta series used in the Appendix (Internet Plus index, │ │ │ weighted patent applications, new enterprises/labor force, HSR) │ │ └── IPP_FS_compiled.dta compiled threshold-variable series for the balanced │ │ 2011-2019 threshold sample (Tables 8-9) │ └── Analysis Data/ │ ├── Analysis_data_Table2.dta Table 2 (descriptive statistics) │ ├── Analysis_data_Table3&4.dta Tables 3-4 (baseline, IV, quantile regressions) │ ├── Analysis_data_Table5&6.dta Tables 5-6 (mechanism analysis) │ ├── Analysis_data_Table7.dta Table 7 (heterogeneity analysis) │ ├── Analysis_data_Table8&9.dta Tables 8-9 (panel threshold regressions) │ └── Analysis_data_Appendix.dta Appendix tables (A.1-A.2, B-D) └── DoFiles/ ├── master.do master script (runs the complete replication) ├── Preprocessing.do data cleaning and construction of the analysis-ready files ├── Table_2.do Table 2 ├── Table_3.do Table 3 ├── Table_4.do Table 4 ├── Table_5_6.do Tables 5 and 6 ├── Table_7.do Table 7 ├── Table_8_9.do Tables 8 and 9 ├── Figure_2.do Figure 4 (quantile regression plot; see Section 4) └── Appendix.do Appendix tables
Files
Steps to reproduce
# Software and packages - Stata 18 (compatible with version 15.1 or later), Windows OS, at least 2 GB of memory. Expected running time of the complete replication: approximately 20-25 minutes. - User-written packages (install once with `ssc install <package>`): `reghdfe`, `ftools`, `estout`, `ivreg2`, `xtivreg2`, `xthreg2`, `ebalance`, `qregplot`, `logout`. | File | Packages used | Output | | ---------------- | -------------------------------------------------- | ----------------------------------- | | Preprocessing.do | none (base commands) | analysis-ready .dta files | | Table_2.do | logout | Table 2 | | Table_3.do | reghdfe, ftools, estout, ivreg2/xtivreg2 | Table 3 | | Table_4.do | estout | Table 4 | | Table_5_6.do | estout | Tables 5-6 | | Table_7.do | estout | Table 7 | | Table_8_9.do | xthreg2 | Tables 8-9 | | Figure_2.do | qregplot | Figure 4 (quantile regression plot) | | Appendix.do | ivreg2/xtivreg2, ebalance, reghdfe, ftools, estout | Appendix tables | **Note on figure numbering.** `Figure_2.do` produces the quantile regression plot, which is **Figure 4** in the manuscript. The spatial-distribution map shown as **Figure 2** in the manuscript was produced in ArcGIS and is not generated by Stata (the underlying DE values are those of `Analysis_data_Table2.dta`). # How to run 1. Install the required user-written packages listed. 2. Open Stata, `cd` to the package root folder (the folder containing `Data/` and `DoFiles/`), and run `do DoFiles/master.do`. 3. Alternatively, run the individual files from the `DoFiles` folder (each analysis file reads its input from `../Data/Analysis Data/`). `master.do` first runs `Preprocessing.do` (which rebuilds the analysis-ready datasets and saves them with labels), then runs each table/figure file in order. The tables are displayed in the Stata results window and exported by `esttab`/`logout` where applicable.
Institutions
- Qingdao UniversityShandong, Qingdao
- Huaqiao UniversityFujian, Xiamen
Categories
Funders
- National Social Science Fund of China (NSSFC)Grant ID: 25FJYB016