Code Monkey home page Code Monkey logo

crosssection's Introduction

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.

crosssection's People

Contributors

tomz23 avatar opensourceap avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.