Introduction to WRDS and Using the Web-Interface to Extract Data and Run an EVENTUS Query



Similar documents
Top 10 Things to Know about WRDS

Financial Databases An Overview. Pardee Management Library October 2010

Introduction Manual CRSP (WRDS)

CRSP, Compustat, and IBES

Introduction to databases and research at the Finance Department. Mikko Niemenmaa Chydenia G2.10

CRSPSift USER GUIDE Updated November 6, 2014

GFDatabase allows you to search financial and economic data series, but not individual securities.

Introduction to Compustat Global and EMDB (WRDS)

CRSPSift USER GUIDE Updated November 6, 2014

quotemedia XML and JSON Delivery Services On Demand, Low Latency, Cloud-based Market and Research Data Services

Students will become familiar with the Brandeis Datastream installation as the primary source of pricing, financial and economic data.

Templates available in Excel 97 (Excel 8) and higher versions:

SMG SMG WORLDWIDE

An Introduction to Datastream

Delisting returns and their effect on accounting-based market anomalies $

HOW TO ORDER HISTORICAL MARKET DATA PRODUCTS

Mergent Online. A User s Guide

Customer Support : System Requirements : Logging In : Homepage :

Main Menu Bar: Access to reports & report display options, such as printing, exporting

Understanding Portfolios. Reading the Portfolio

Online Appendix for. On the determinants of pairs trading profitability

Standard & Poor s Research Insight Getting Started (Global) By Standard & Poor s

Research Insight (COMPUSTAT) User's Guide

( revised 22Jan2015 )

Any symbols displayed within these pages are for illustrative purposes only, and are not intended to portray any recommendation.

DATA DESCRIPTIONS GUIDE. CRSP US Stock & US Index Databases

Chapter 3. Screening COMPUSTAT (North America) with the Research Assistant

Closed-End Funds. A closed-end fund is a type of investment company. whose shares are listed on a stock exchange

Compustat Executive Compensation Database

Estimating a market model: Step-by-step Prepared by Pamela Peterson Drake Florida Atlantic University

Guidelines. 1. Easily getting financial data and comparables from AdvFN

Excel Add-ins Quick Start Guide

Thomson One Analytics Excel Add-in User Guide. Version 2.0

Individual Equity Return Data From Thomson Datastream: Handle with Care!

DATASTREAM ADVANCE FOR OFFICE 5 USING EXCEL 2007 ISSUE 4

Pharmacy Affairs Branch. Website Database Downloads PUBLIC ACCESS GUIDE

How To Invest In Stocks And Bonds

Version 8.0. User s Guide

Working With Option Trades in Simply Track

Morningstar Investment Research Center User s Guide

Xiaoding Liu and Jay R. Ritter December 20, 2010

Statistics and Analysis. Quality Control: How to Analyze and Verify Financial Data

NIKE Case Study Solutions

Value Line Investment Survey Online

NetXInvestor TM USER GUIDE. March 2014

amleague Trading Platform User Guide

How To Vote On A Share Consolidation At The Upcoming Annual Meeting Of Tie.Com

ETF Portfolio Composition File FAQ and Key Definitions

Data Definitions. 5/2000 Chapter 5 Data Definitions i

How Wall Street Works Nightly Business Report

Jonathan A. Milian. Florida International University School of Accounting S.W. 8 th St. Miami, FL jonathan.milian@fiu.

VALUE LINE INVESTMENT SURVEY ONLINE USER S GUIDE VALUE LINE INVESTMENT SURVEY ONLINE. User s Guide

BEAR: A person who believes that the price of a particular security or the market as a whole will go lower.

Overview: Table 1. BAV Model Worksheets

Business Intelligence Getting Started Guide

User s Guide

WEB BASED Access Control/Time Attendance Software Manual V 1.0

ithenticate User Manual

Table 1. The Number of Follow-on Offerings by Year,

Applications: CLSA Equity Screener

Securities Identifiers Capital Markets (From 4 day workshop) Khader Shaik

Orbis Database for Our Research: A Practical User Guide

Financial Formulas. 5/2000 Chapter 3 Financial Formulas i

Datastream Advance 4.0 User Guide

Introduction to NSYE TAQ (WRDS)

International Monetary Fund. The Integrated Correspondence System. Using the ICS Information Framework Template

FREE MARKET U.S. EQUITY FUND FREE MARKET INTERNATIONAL EQUITY FUND FREE MARKET FIXED INCOME FUND of THE RBB FUND, INC. PROSPECTUS.

Improve your equity research productivity

Integrated Company Analysis

ithenticate User Manual

BVR. Free Download. PitchBook Plugin for Excel USER GUIDE. What It s Worth

Workspaces Creating and Opening Pages Creating Ticker Lists Looking up Ticker Symbols Ticker Sync Groups Market Summary Snap Quote Key Statistics

Monitoring Network DMN

NAIP Consortium Strengthening Statistical Computing for NARS SAS Enterprise Business Intelligence

Internet Appendix to Target Behavior and Financing: How Conclusive is the Evidence? * Table IA.I Summary Statistics (Actual Data)

Converting an Excel Spreadsheet Into an Access Database

I/B/E/S GUIDANCE USER GUIDE A GUIDE TO UNDERSTANDING THE TERMS, LAYOUTS & USE OF I/B/E/S GUIDANCE

User s Guide

Morningstar. DirectSM User Guide

User Guide. A guide to online services available through Sircon for Education Providers. DOC CX 08/13/10 02/02 v5

Institutional Trading, Brokerage Commissions, and Information Production around Stock Splits

OSI IMPLEMENTATION REFERENCE GUIDE

Sirix Tablet 6.5 User Guide

Factiva. User s Guide. Introduction

Quick Reference Guide. Online Courier: FTP. Signing On. Using FTP Pickup. To Access Online Courier.

TheFinancialEdge. Administration Guide

How to download historical data for a list of securities from outside of Bloomberg using Bloomberg Excel API s History Wizard

Quick Start Guide. Contents. Quick Start Guide Version 1.0 webcrm November 09

Treasury Workshop I POWERPLUS PRO V4.5 DATADOWNLOAD

Retrieving Data from CRSP and Compustat Using the WRDS s server

MSCI Dividend Masters Indexes Methodology

TheFinancialEdge. Administration Guide

Understanding Leverage in Closed-End Funds

JPMORGAN CHASE & CO FORM FWP. (Free Writing Prospectus - Filing under Securities Act Rules 163/433) Filed 07/16/14

National Child Measurement Programme 2015/16. IT System User Guide Part 3. Pupil Data Management

Financial Econometrics and Volatility Models Introduction to High Frequency Data

Low Volatility Investing: A Consultant s Perspective

ProgressBook ParentAccess Web Site Administration Guide

May 2011 Monthly Update - Microsoft Wordpress

Sage Accpac ERP 5.6A. CRM Analytics for SageCRM I User Guide

Transcription:

Introduction to WRDS and Using the Web-Interface to Extract Data and Run an EVENTUS Query Vivek Nawosah Xfi Centre for Finance & Investment University of Exeter January 10, 2007

Outline Introduction to WRDS Web-query Characteristics List of University of Exeter Subscriptions on WRDS (Including free access data sets available) Performing a Web Query to Extract Data Some General Data-Related Issues Some Web-Query Examples Some useful WRDS Tools and Applications WRDS Research Applications Performing an EVENTUS Web Query to Run an Event Study 2

Introduction to WRDS WRDS (Wharton Research Data Services) is an internet-based business data service provided by Wharton School, University of Pennsylvania (http://wrds.wharton.upenn.edu/) WRDS holds a compilation of (up-to-date) historical data from some of the most comprehensive sources of financial, accounting, economic, management, marketing, banking, and insurance data for research. Both US and International data coverage A consistent data format for all databases: SAS (Statistical Analysis Software System) data format. - You need to convert the data into proper format required by the system you are using for your data analysis Three ways of working with WRDS: Web Query Unix environment via SSH client (SAS programming; binary data format CRSP datasets also accessible via FORTRAN or C programming) PC/SAS (SAS programming; Remote access) You can download the same exact data using any of three methods, but UNIX and PC/SAS offer greater flexibility and strengths, and are more efficient. In addition, you can do much more! Focus of this lecture: Web Query. o WRDS-UNIX and UNIX-based EVENTUS will be covered in Lecture 12 Part II, hand-outs will be posted on WebCT. 3

Web-Query Characteristics Easy to explore data. Point-and-click access to databases. No programming as in WRDS-UNIX and PC/SAS Up to 2 GB of data per download Links to support materials (documentation and manuals for each database) which you can download. Access to Search and other Tools. Point-and-click data items for brief description and coding. Directions in grey boxes on the right. You can choose among different output formats. Once the output is ready, you can view file or save it to your PC. Easy to import into EXCEL and other statistical packages, STATA and MATLAB. Note: Students will be using common username and password. Those who might need to work in UNIX environment should let me know so that individual accounts can be arranged. 4

Subscriptions on WRDS List of University of Exeter Subscriptions on WRDS (Including free access data sets available) Free Access on WRDS COMPUSTAT North America Bank Regulatory Financial and history data on commercial/savings banks, bank holding COMPUSTAT Global Vantage companies, deposits, etc. CRSP Daily/Monthly Stocks only Blockholders I/B/E/S CBOE Indexes Volatility indices (VIX) on stock index options EVENTUS (Software) CISDM Hedge funds DMEF Consumer buying history Dow Jones DJI, DJT, DJU, Dow 10, Dow 5 Fama-French, Momentum, and Liquidity FDIC Deposits, Bank data Federal Reserve Bank Reports FOREX, Interest rates (term structure) data, Coincident indexes PHLX Currency options and Implied volatility Penn World Tables National accounts data SEC Disclosure of Order Execution TRACE Corporate bond data See Appendix A1 for details on each database, description, data sets within each database, date coverage, frequency of data, and some of the main data items included. See Appendix A2 for a description of EVENTUS software. 5

Performing a Web Query to Extract Data All databases in WRDS have a standard web interface. Most involve the following specifications: I. Data source 1) Select database (e.g. CRSP, COMPUSTAT North America,...) 2) Select dataset (e.g. CRSP Monthly Stocks, COMPUSTAT Industrial Annual, ) II. III. Complete four steps that will internally create a request file 1) STEP ONE: DATE RANGE AND FREQUENCY» Choose Frequency: Daily, monthly, quarterly, annual» Choose Time period: Beg. period to End period 2) STEP TWO: ENTITIES» Input Company (or issue) Identifiers (e.g. Ticker, CUSIP, GVKEY, PERMNO, PERMCO) (1) Input Individual identifiers into box, or (2) Upload File with List of identifiers, or (3) Choose Entire database» Specify Screening or Filtering criteria if required (e.g. Actives, Inactives)» Specify Conditional Options if required (e.g. in COMPUSTAT, DATA6>100 MM$ AND CPSPIN=1) 3) STEP THREE: VARIABLES» Price, Returns, Book Value, Earnings, Net Assets, 4) STEP FOUR: OUTPUT FORMAT» Text,.csv, dbase, HTML, SAS, Click on Submit Request to submit the Request file A new window (Data Request Summary) opens and keeps on refreshing every 10 seconds till output is complete. When output is complete, click on filename to view file, or follow Download instructions to download file to your pc. 6

Web-Interface Demonstration (COMPUSTAT NA) Visit http://wrds.wharton.upenn.edu/demo/trydemo.shtml for step-by-step demonstrations on other databases. I. 1) Select desired database Point-and-click database 7

Web-Interface Demonstration I. 2) Select desired dataset Point-and-click data set 8

Web-Interface Demonstration: STEP ONE Choose frequency Set time period 9

Web-Interface Demonstration: STEP TWO Search by Ticker, CUSIP, GVKEY, etc. Either enter identifier (use code lookup if identifier not known) Or browse and upload file with list of identifiers Or search entire database Specify filter Specify conditional criteria, e.g. 10

Web-Interface Demonstration: STEP THREE Select variables 11

Web-Interface Demonstration: STEP FOUR Select file format Choose importable formats (tab-delimited,.csv, ) Read me Choose compression type for large extracts Click on Submit Request 12

Web-Interface Demonstration: Data Request Summary, After Processing Has Finished File when output complete Download instructions 13

Some General Data-Related Issues Common company identifiers (CUSIP, SEDOL, Ticker) versus database-specific identifiers (PERMNO, PERMCO, GVKEY, ) - Each database has its own permanent identifier. A permanent identifier is assigned to a unique company or security and does not change over time, nor re-used. e.g. In CRSP, PERMNO and PERMCO are permanent identifiers for securities and companies, respectively. COMPUSTAT uses GVKEY as the permanent identifier for companies, I/B/E/S uses TICKER, Units of measurement, date formats, etc. Missing data value codes - Different databases have their own coding system for representing missing values, but WRDS uses a consistent system (the SAS convention) in coding missing values. See documentation under each dataset for a translation from original codes to SAS codes. Regular SAS missing value is a., see documentation for special missing values. Some observations of a particular data series might be recorded in a different format to reflect measurement differences! - e.g. PRC in CRSP, if the closing price is not available for any given period, the number in the price field is replaced with a bid/ask average and a 'negative sign placed in front. If neither price nor bid/ask average is available, Price or Bid/Ask Average is set to zero. Some data series (prices, returns, dividends, shares outstanding, etc.) need to be adjusted for capital reorganisations (stock dividends and splits, share repurchases, M&A, etc.). Some data series might still be recorded on an unadjusted basis, in which case you will need to transform the series into 'standardised' series 14 - e.g. CRSP provide correction factors, FACPR and FACSHR

Some General Data-Related Issues (Cont d) Merging databases - Most research involves several datasets, so need to merge databases. Cannot use database-specific identifiers (PERMNO/PERMCO, GVKEY, IBES-TICKER). Use common identifiers, but which one? Company names, Tickers, or CUSIPs? Names and Tickers change though time, can be re-used, and therefore have different entries in different databases. CUSIP changes through time but are not re-used. - Best to match on the basis of CUSIPs, but when several CUSIPs matching tedious Temporarily delisted companies and discontinuous time-series versus permanently delisted, dead, or inactive, companies and missing observations? Preparing input files to upload on WRDS and organising (SAS format) output data into proper format for further analysis as necessary. - Choose correct format for downloads when importing to other softwares and read items like entity identifiers as characters in EXCEL, etc. Calendar year-end data versus Fiscal year-end data - CRSP follows calendar regime and COMPUSTAT follows fiscal regime - e.g. constructing Market-to-Book ratio. Book value for a company may be reported for fiscal year ending June, but you might want to calculate MB ratio at calendar year-end month, December. Dealing with large data files. Limitations of Excel sheets on the number of rows (256) and columns (about 65,500). Solutions: Split files, write macros (VBA) and use multiple sheets, use Microsoft Access (some limitations too but can handle big datasets), or learn programming! Refer to Documentation and Manuals for the each database for data descriptions!!! 15

Some Web-Query Examples Create dataset of stock returns for a day, month, year, one firm or all firms from CRSP. Determine if more than one stock has used the ticker symbol ABC on the NYSE over the last 40 years and find the historical CUSIPs for each, as well as current CRSP and COMPUSTAT ID codes. (Hints: Use Search Company and Identification Search Tool) Find all companies (actives and inactives) with sales greater than 1 billion and total assets greater than 5 billions in 1997 and more than 30 years of publicly reported financial statements from COMPUSTAT. (Hints: use Conditional Statements) Find the current constituents of the S&P500 and get the price and earnings data (Hints: COMPUSTAT, use CPSPIN) Find the constituents of the S&P small-cap index from 2000 to 2006 and get their accounting data (Hint: use COMPUSTAT PDE Monthly format, CPSPIN) Get financial statement extracts for one or multiple companies (COMPUSTAT Search Tool) Get financial statement data and Ratios for a company (Valuation Tool/COMPUSTAT Tool) 16

Some useful WRDS Tools and Applications Go to: http://wrds.wharton.upenn.edu/home/tools.shtml (Or click on Tools ) Search Tools: o Company and Identification & Variable and Description Search Tools COMPUSTAT Tools: o o o Financial Statements Annual updates Balance Sheet and Income Statement Extract Stock Price Graphs CRSP Tools: o o Returns + Decile Assignments (event studies) Events and Names Valuation Tools: o Financial Statements data and Ratios Other Tools: o o Option Value Calculator Request File Validation Sample Programs (SAS, FORTRAN, C) 17

WRDS Research Applications Note: Sample programs and codes require WRDS-UNIX (or PC/SAS) environment. Go to: http://wrds.wharton.upenn.edu/support/researchapp.shtml (Or click on Support ) I. Portfolio Construction and Benchmarks: Momentum Strategies/Portfolios (Jegadeesh and Titman, Journal of Finance, 1993) Portfolios by Size and Book-to-Market The Size/Book To Market/Momentum Benchmarks (Daniel, Grinblatt, Titman, and Wermers, Journal of Finance, 1997) II. Programming Examples: Beta Estimation Calculate Compounded Returns Calculate Compounded Return 3 Months After Fiscal Year Ends Compounded Returns Accounting for Delisting Events Dynamic Conditional Correlation-GARCH models (Engle, Journal of Business and Economic Statistics, 2002) Heteroscedasticity-Consistent (HC) Standard Errors Linking I/B/E/S and CRSP Data Run an Event Study (Compare EVENTUS Software) 18

WRDS Research Applications (Cont d) III. Guides and codes on Other Topics: Database Biases and Errors SIC, International, Industry Classification Schemes: Effects on Research Guide to ADRs Guide to Closed-End Funds Guide to IPO Databases and Research Guide to M&A Databases and Research Guide to Option Pricing Models Different ways to obtain Market-to-Book ratios using COMPUSTAT files How to obtain S&P500 information? Calculating Tobins s Q 19

Performing an EVENTUS Web Query to Run an Event Study EVENTUS Software performs event studies using data directly from CRSP stock databases or pre-extracted from any source. Refer to Appendix A2 for a description. EVENTUS web query run only when data taken directly from CRSP. An EVENTUS web query requires the following specifications: I. Most important is to create a REQUEST FILE that contains: 1) the input codes (PERMNO or CUSIP) that identify the stocks and 2) the associated event dates. File Format? In general, a simple text file (.txt) with one space between the identifier and the date will work. Click on Sample Request files for some examples and details on formats. You can use Request File Validation tool to check whether your file has the right format. EVENTUS automatically calls all other files from CRSP for your given identifers. A sample Request File with PERMNOs and event dates (Text format): 20

Performing an EVENTUS Web Query to Run an Event Study (Cont d) II. Complete the six web-query steps: 1) STEP ONE: SELECT THE TYPE OF EVENT STUDY 2) STEP TWO: REQUEST FILE & SEARCH» Select identifier used in your Request file (PERMNO or CUSIP).» Use Browse... option to upload your Request file. 3) STEP THREE: SELECT MARKET INDICES AND BENCHMARK OPTIONS» Select the market index (CRSP EW, CSRP VW returns...)» Select benchmark options (Default: Market Model).» Specify group datafile options, if grouping or weighting groups. 4) STEP FOUR: SELECT ESTIMATION OPTIONS» Defining the Estimation Period: - EST = n, estimation period ends at period t n. - ESTLEN = m, estimation period is m periods long, - MINEST = k, removes an observation from sample if stock has fewer than k-periods of return data in the estimation period.» AUTODATE converts non-trading days (week-ends, holidays, etc.), if any in your file, into trading days. Option YES, e.g., converts a Sat. to the following trading day (Mon. if trading day, else Tue.). Option BACK, e.g., converts a Sat. to a previous trading day (Fri. if a trading day).» Selecting the estimation method of the parameters: OLS, GARCH, EGARCH and Scholes-Williams. 21

Performing an EVENTUS Web Query to Run an Event Study (Cont d) 5) STEP FIVE: EVENT WINDOWS SPECIFICATIONS» PRE and POST define the length of the Event period for which you will obtain CARs or BHARs.» The Alternative Windows specifications will define the event windows for which EVENTUS will compute the CARs or BHARs. 6) STEP SIX: EVENT TESTS» Select from different options of Statistical Tests» Select to add or suppress some output details from Output file Click on Submit Request to submit the Request file A new window (Data Request Summary) opens and keeps on refreshing every 10 seconds till output is complete. III. When output is complete, click on filename to view file, or follow Download instructions to download file to your pc. Refer to EVENTUS manual for descriptions of all the options used. When using Non-CRSP data, can run customised SAS programs on WRDS- UNIX and PC/SAS. Can also do Plots and Graphics, not available in web-query. You will get exactly the same results as the web query if you run an EVENTUS SAS program (specifying the same options) on WRDS-UNIX or PC/SAS. 22

Students who need to use WRDS-UNIX and UNIX-based EVENTUS: To get you started, instructions and some sample programs will be published into WebCT, Lecture 12 Part II. A demonstration session will be arranged depending on the number of users. Good luck! 23