Category: Data management

Author resource: Joost Impink

External link:


I have created a git repository with SAS macros for the various Fama and French industry classifications.

Fama-French repository, and link to SAS macros within repository: SAS macros.


Sample usage:

/* load macro */
include 'git/fama-french/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' ;

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

Other Data management
SAS Winsorize macro


Latest forum posts
Fama French 49 YES 49 !!! by CA Miller
date format by jc625
Discretionary Accruals by jwhi121
question about discretionary accrual models by kerrida
Combining Global and North American data by CA Miller
File for Eventus or SAS Event Study by samme
quarterly accruals by lxt88
Financial Statement Comparability - De Franco, Kothari and Verdi (2011, JAR) Replication by rowing
question about discretionary accrual models by Zenghui
problem in perl by KZ

All rights reserved. © 2010-2014 [Copyright] [Privacy Statement] [Disclaimer] [About]