Skip to content

Code to accompany our paper Chen and Zimmermann (2020), "Open source cross-sectional asset pricing"

License

Notifications You must be signed in to change notification settings

randomgambit/CrossSection

 
 

Repository files navigation

Open source cross sectional asset pricing

This repo accompanies our paper: Chen and Zimmermann (2020), "Open source cross-sectional asset pricing"

If you use data or code based on our work, please cite the paper: Bibtex entry

Data

If you are mostly interested in working with the data, we provide benchmark signal and portfolio returns in separate files for direct download.

You can access the benchmark data here.

The folder contains 4 files

  • Portfolio Returns Benchmark Signals: portbase.zip
  • Portfolio Returns Additional Signals: portadditional.zip
  • Firm-level benchmark signals: signalbase.zip
  • Firm-level additional signals: signaladditional.zip

For reference to individual signals, their acronyms and construction please see the online appendix to our paper and the file SignalDocumentation.xls that is part of this repo.

Code

The code is separated into different files that download and prepare the data, and construct signals and portfolios. Please see the file runEverything.txt to get an overview of how the entire code can be run. The current code does some parts in R and some in Stata, so you will need both to run everything.

Data access

To download raw data from the original sources, you will need access to WRDS. At a minimum, you will need access to the following databases:

  • CRSP
  • Compustat
  • IBES

WRDS provides instructions for setting up WRDS to work via RStudio on your computer

Contribute

Please let us know if you find typos in the code or think that we should add additional signals. You can let us know about any suggested changes via pull requests for this repo. We will keep the code up to date for other researchers to use it.

Git Integration

If you use RStudio, take a look at Hendrik Bruns' guide to set up version control.

As a stand-alone client for Windows, we recommend Sourcetree.

About

Code to accompany our paper Chen and Zimmermann (2020), "Open source cross-sectional asset pricing"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Stata 50.3%
  • R 42.8%
  • SAS 6.9%