randomgambit / dier-replication

Replication files for the paper Directional Information In Equity Returns.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replication Files for Directional Information in Equity Returns

This repository contains replication files for the paper Directional Information in Equity Returns by Luca Del Viva, Carlo Sala and Andre B.M. Souza. The paper is available here.

Authors

Luca Del Viva, Carlo Sala, and Andre B.M. Souza.

Software Requirements

This code requires Matlab, Stata, R, and access to a command prompt to run .sh files.

Data requirements

This code assumes there exists files named CRSP_Daily.dta and CRSP_Monthly.dta in data/inputs. These files should be downloaded from CRSP.

Instructions

To construct the probability score, run the script ConstructProbScore.sh in the folder code. Alternatively, you can run the scripts Preparing_Daily_Variables.do,Preparing_Weekly_Variables.do,Preparing_Monthly_Variables.do, Aggregate_Data.do, Create_ProbScore_OOS_Parallelized.R and Create_Main_Strategies.do. Once the probability score is constructed, you can run the analysis to replicate Tables 1 and 2 in the paper by running the script RunAnalysis.sh.

Data

Important Disclaimer: The data used in this study was downloaded from the following sources in April, 2023.

Additional Resources

About

Replication files for the paper Directional Information In Equity Returns.

License:GNU General Public License v2.0


Languages

Language:R 58.3%Language:Stata 38.4%Language:Shell 3.2%