Skip to content
/ SortCS Public

sort the assets in the cross-section, and form portfolios.

Notifications You must be signed in to change notification settings

xinhe97/SortCS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SortCS

Sort the assets in the cross-section, and form portfolios.

Step 1

Calculate equity characteristics and returns with codes and wrds.

Step 2

Run main_sort_20210202.py

Output

You get an object, in the class cs definded in folder ./tools/. The object contains 61 groups of univariate (quintile) sorted portfolios and 60 groups of bivariate (ME2 x Char3) sorted portfolios, where portfolio returns, long-short factors, portfolio characteristics are very convenient to access via the class cs.

A simple example is there in example.ipynb to demonstrate the features in class cs.

Disclaimer

./data_Jan2021/ is proprietary data. You can calculate your own equity data with the code in step 1.

About

sort the assets in the cross-section, and form portfolios.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published