Data found in the crsp
data library on WRDS (/wrds/crsp/sasdata/
on SAS server)
As discussed here, "since 1960, CRSP has provided research-quality data to scholarly researchers and advanced the body of knowledge in finance, economics and related disciplines. Today, nearly 500 leading academic institutions in 35 countries rely on CRSP data for academic research and to support classroom instructions."
Most of the tables maintained in the crsp
schema are imported from WRDS using fairly straightforward application of the wrds_udpate
function from the wrds2pg
package.
However, there are some additional table that the code in this directory produces:
-
crsp.rets
: Daily stock returns compounded with delisting returns. This purpose of this table is to dramatically speed up calculation of event returns, but creation of this table take some time. This table is used by functions such asget_event_cum_rets.R
in thefarr
package available here. -
crsp.mrets
: Monthly stock returns compounded with delisting returns. This table is used by functions such asget_event_cum_rets_mth.R
in thefarr
package available here. -
tfz_ft
: The tablecrsp.tfz_ft
is available through the WRDS web interface, but does not exist as a separate SAS file or PostgreSQL table. According to WRDS, "behind the scenes the web query form is joining two tables on the fly. The tables this query is joining arecrsp.tfz_idx
and eithercrsp.tfz_dly_ft
orcrsp.tfz_mth_ft
(depending on whether you want daily or monthly data) by the variablekytreasnox
." Here are some links to the information about these tables:crsp.tfz_idx
,crsp.tfz_dly_ft
,crsp.tfz_mth_ft
. -
trading_dates
: A simple table comprising two fields:date
andtd
. Here,date
is a trading date available oncrsp.dsi
(or, equivalently,crsp.dsf
) andtd
is a simple sequence of integers starting at1
for the first trading date and increasing by one for each subsequent date. -
anncdates
: A simple table comprising three fields:anncdate
,date
andtd
. Here,anncdate
is any date on or after1925-12-31
, whether or not a trading date, anddate
is the next available trading date. This table allows any date to be mapped to the first date on which trading occurs on or after that date. See here for more on the problem thattrading_dates
andanncdates
are intended to solve and illusrations of their use.