你下载人家的数据文件
http://dss.princeton.edu/online_help/stats_packages/stata/eventstudydataprep.html
看看人家的数据格式就可以了
Using example dataAlternatively, you may try the commands in our event studies example using our sample data set. There are two data sets: one called eventdates, that contain event information, and the other called stockdata. The events, in this example, are merger announcement dates for 2007 obtained from SDC Platinum. The stock return data for 2007 were obtained from CRSP daily stock.
The computer you are using Stata needs to be connected to the internet for this download to work. Please be patient with the download. You can see a counter on the bottom of Stata window which shows how much percent of the file has been downloaded. Once you finish the download, save the data on your computer or where you have write permission, like thesis folder in your H drive. Make sure that you have enough space in your drive to save these data files.
set memory 200m
use http://dss.princeton.edu/sampleData/eventdates.dta /* about 11k */
save H:/thesis/eventdates
use http://dss.princeton.edu/sampleData/stockdata.dta, clear /* about 90m */
save H:/thesis/stockdata