Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Note

This document provided by Professor Robyn McLaughlin, Finance Department, Sawyer Business School

***********************************************************************************

...

*   It reads cusips and "event" dates from a SAS data file, a text file

*   For more info, go to http://www.eventstudy.com/  the EVENTUS home page or even more directly, http://www.eventstudy.com/Eventus-Guide-8-Public.pdf ==> the EVENTUS user's manual & search for getdata (starting on page 51) ;

***********************************************************************************/;

libname DGTWdata "E:\sas-data\robynm\Eventus\datasets\DGTW_data";

...

LIBNAME Mdata2 "E:\sas-data\robynm\master_data2";;   /* define the SAS "libraries" = shorthand for file path names*/;

***********************************************************************

...

***********************************************************************;

*####################################################################################;

proc import DBMS=EXCEL

DATAFILE = "E:\sas-data\robynm\master_data2\Ex_test.xls"

...

*     MIXED=YES;

       USEDATE=YES;

run;

*####################################################################################;

...

   extfile = "E:\sas-data\robynm\master_data2\text_OutRet_D.txt" ;;

run;

/*  1st line:  getdata => get raw data, not run an event study

...

               extfile => write output to text file   */;

*####################################################################################;

*####################################################################################;

eventus getdata monthly;                      

...

               extfile => write output to text file   */;

*####################################################################################;

*####################################################################################;

filename request "E:\sas-data\robynm\master_data2\TxT_data_in1.txt";;

...

   extfile = "E:\sas-data\robynm\master_data2\TxT_OutVol_D.txt" ;;

run;

/*  filename line:  defines E:\sas-data\robynm\master_data2\TxT_data_in1.txt

...

               extfile => write output to text file

*/;

*####################################################################################;

***********************************************************************

...

***********************************************************************;

*####################################################################################;

eventus monthly ;

TITLE1 "Eventus 2-stage Event Study - Test - Various Holding periods thru Month +60";;

...

           DTAWin="E:\sas-data\robynm\master_data2\Stata_HP_M" ;;

run;

/*  1st line:  run an event study - monthly data  

...

               DTAWin => write output to stata file*/;

*####################################################################################;

...