Skip to content

Instantly share code, notes, and snippets.

@sfgreen
sfgreen / earnings_management_models.sas
Created October 14, 2017 19:09 — forked from JoostImpink/earnings_management_models.sas
Estimate earnings management models
/*
Earnings management models
Author: Joost Impink, March 2016
Models estimated:
- Jones model, tac = a0 + a1 1/TAt-1 + a2chSales + a3PPE + a4ROA + error.
- variable names DA_Jones ABSDA_Jones
- Modified Jones model, as Jones model, but using chSales - chREC to compute fitted values.
@sfgreen
sfgreen / hayn_0_construct_sample.sas
Created October 5, 2017 18:19 — forked from JoostImpink/hayn_0_construct_sample.sas
Hayn 1995 replica, code to construct sample
/* We need to make a sample for US listed firms with fiscal years 1962-1990
From Compustat Funda we need:
- gvkey Firm identifier
- datadate End of fiscal year
- fyear Fiscal year
- epspx EPS before extraordinary items
- prcc_f Price at fiscal year end
- csho Common shares outstanding end of year (to compute market cap)