Giter VIP home page Giter VIP logo

fama-french-industry's Introduction

fama-french

Fama French Industry Classification

Fama French industry classification

Kenneth French provides a data library with the Fama French factors and industry classifications.

The industry classification schedules is in /import for various classifications: 5, 10, 12, 17, 30, 38, 48, 49.

Source files

The industry classifications are downloaded from Kenneth French' page, e.g. for the 12 industry classification:

http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/Data_Library/det_12_ind_port.html

SAS code

Folder SAS holds macros for each of the seven industry classifications

Sample usage

Download the repository and move it into your SAS folder structure, e.g. \yourproject\SAS\git\fama-french. Then, use as follows, assuming your code is in yourproject\SAS.

/* load macro */
include 'git/fama-french/SAS/Siccodes49.sas';

/* create sample dataset */
data a_myfunda (keep = gvkey sich gvkey fyear at sale ceq);
set comp.funda;
if indfmt eq'INDL' and datafmt eq 'STD' and popsrc eq 'D' and consol eq 'C' ;
run;

/* append fama french 49 industry code */
%ff49(dsin=work.a_funda, dsout=work.b_ff, varname=ff49);

Nodejs

The SAS code is generated using scripts\make.js. To run the script, you need to have node and npm installed:

npm install
npm run make

Templates

For each industry classification file there is a matching template file in directory templates. Industry classifications that do not have a specification for industry other have an extra line of code where the industry is set to other if there was no matching industry.

Other code

See www.wrds.us for other code examples to use WRDS and SAS.

fama-french-industry's People

Contributors

joosti avatar joostimpink 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.