Replication code for household financial asset diversification and the energy transition in China (CGSS and CHARLS)

This dataset contains the Python code used to reproduce the quantitative results reported in the manuscript 'Household financial asset diversification and the energy transition in China: Cross-sectional and longitudinal evidence from the CGSS and CHARLS'. Contents: replication_code.zip (seven numbered scripts, expected_output/ with reference log output, requirements.txt, README.md) and a standalone README.md. The code covers the cross-sectional CGSS 2015 models (Tables 2-4), the instrumental-variable and propensity-score checks (Tables 5-9 and Appendix A.11), and the three-wave CHARLS 2013/2015/2018 household fixed-effects models with the Mundlak decomposition (Section 5 and Appendix B), together with the construction of the fuel-type, financial-asset and wealth variables. CGSS and CHARLS are third-party datasets and are not redistributed here; README.md states where to obtain them, which variables are used, and what each script should print. Scripts were run with Python 3.12.11, pandas 2.2.3, NumPy 1.26.4, linearmodels 7.1 and statsmodels 0.15.0.

Authors

Publication Details

Journal
OSF Preprints (OSF Preprints)
Published
2026-11-16
DOI
https://doi.org/10.17632/y4vdmdwym7
Primary Topic
Energy, Environment, and Transportation Policies
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Replication code for household financial asset diversification and the energy transition in China (CGSS and CHARLS)

Gongtao Zhang
OSF Preprints (OSF Preprints)
Energy, Environment, and Transportation Policies
preprint

Replication code for household financial asset diversification and the energy transition in China (CGSS and CHARLS)

Gongtao Zhang
preprint en

Abstract

This dataset contains the Python code used to reproduce the quantitative results reported in the manuscript 'Household financial asset diversification and the energy transition in China: Cross-sectional and longitudinal evidence from the CGSS and CHARLS'. Contents: replication_code.zip (seven numbered scripts, expected_output/ with reference log output, requirements.txt, README.md) and a standalone README.md. The code covers the cross-sectional CGSS 2015 models (Tables 2-4), the instrumental-variable and propensity-score checks (Tables 5-9 and Appendix A.11), and the three-wave CHARLS 2013/2015/2018 household fixed-effects models with the Mundlak decomposition (Section 5 and Appendix B), together with the construction of the fuel-type, financial-asset and wealth variables. CGSS and CHARLS are third-party datasets and are not redistributed here; README.md states where to obtain them, which variables are used, and what each script should print. Scripts were run with Python 3.12.11, pandas 2.2.3, NumPy 1.26.4, linearmodels 7.1 and statsmodels 0.15.0.

OSF Preprints (OSF Preprints)
Energy, Environment, and Transportation Policies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon