Code Monkey home page Code Monkey logo

filtertrace's Introduction

FilterTRACE

This is an effort to port the SAS code provided by Dick-Nielsen (2009, 2014) to R. The filtering steps are applied to data from the enhanced Trade Reporting and Compliance Engine (TRACE) as reported to the FINRA. The original data was downloaded from WRDS. It is necessary to split the sample in two, since on 6th February 2012 there were changes to the database format and the way the trades were reported. Thus, the filtering steps are described in two separate R-files describing the filtering for the two different samples. The filtering algorithm for the pre-2012 period is a bit more elaborate than the Dick-Nielsen algorithm, since it accounts for more recursive matches between corrected trades. Thus it should result in more trades to be removed. Help was provided by the SAS support forums. This is work for the following research project analyzing the development of cost of debt in the oil industry: http://www.cmstatistics.org/RegistrationsV2/CMStatistics2018/viewSubmission.php?in=1433&token=q2s44176ro80nr027s67s79418858qsq

Dick-Nielsen, Jens, Liquidity Biases in TRACE (June 3, 2009). Journal of Fixed Income, Vol. 19, No. 2, 2009. Available at SSRN: https://ssrn.com/abstract=1424870 or http://dx.doi.org/10.2139/ssrn.1424870

Dick-Nielsen, Jens, How to Clean Enhanced TRACE Data (December 3, 2014). Available at SSRN: https://ssrn.com/abstract=2337908 or http://dx.doi.org/10.2139/ssrn.2337908

filtertrace's People

Contributors

hannes101 avatar

Stargazers

Rayhan Momin avatar Jeremy Bejarano avatar Yizhang avatar Diego Bonelli avatar  avatar  avatar Adam Duff avatar

Watchers

 avatar

Forkers

codecat23

filtertrace's Issues

dat.table library not found

Hello Hannes, I'm looking to run your code but it seems that dat.table is not compatible with the latest version of R or does not exist. Is there a way to get around this? it seems like the library is crucial to the entire script, as dt.TRACE.Pre.data.final id not defined.

Thanks!

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.