Description
CrossSection is the open-source code behind the paper Open Source Cross-Sectional Asset Pricing by Andrew Y. Chen and Tom Zimmermann, published in the Critical Finance Review. It reproduces a large set of stock-level signals (characteristics) used in asset pricing research and the portfolios built from them. The code is split into three parts: Python scripts that download data from WRDS and other sources and construct the signals, R code that turns the signals into portfolios, and scripts that prepare the data for sharing. You can run only the part you need, for example skipping signal generation by downloading its output from the project's data page. Researchers who just want the data can download it directly, and use the repository to see exactly how each predictor is built. The whole codebase is about 15,000 lines.…
Highlights
- Python code that builds stock-level signals from WRDS and other data
- R code that turns signals into portfolios
- Separate data-sharing preparation scripts
- Run each stage independently
- Readable construction code for every predictor
Ratings & Reviews
No ratings yet
Be the first to rate CrossSection.
People also visit
CrossSection FAQ
What is CrossSection?
The code accompanying Chen and Zimmermann's paper Open Source Cross-Sectional Asset Pricing, which constructs stock-level signals and portfolios for asset pricing research.
Do I have to run the code to get the data?
No. Signals and several portfolio implementations can be downloaded from the project's data page, which also has its own FAQ.
What languages does it use?
Signal construction is in Python (Signals/pyCode), portfolio construction is entirely in R (Portfolios/Code).
What data access do I need?
The signal scripts download data from WRDS and elsewhere, so building signals yourself requires WRDS access.
How should I cite it?
Cite Chen and Zimmermann, Open Source Cross Sectional Asset Pricing, Critical Finance Review, volume 11, number 2, pages 207-264. A BibTeX entry is in the README.
What are the best CrossSection alternatives?
Popular alternatives to CrossSection include Finance-Research, Frds and Stocks. See all CrossSection alternatives



