Hi there,
I'm new to STATA an not very familiar with it. I'm having some trouble creating an event window and an estimation window. My data consists of macroeconomic announcements from the bank of england from 2007 until the end of 2013 and high frequency exchange rates (5 minute intervals). I'm essentially trying to test the effect of these announcements on the price of exchange rates. I have exchange rate data for the day before the event and the day of the event. My data goes as follows: A1 year, B1 month, C1 day, D1, time (eastern US), E1 price EUR/USD, F1 GBP/USD, G1 EUR/GBP and H1 announcement (1 if announcement and 0 if not) and I have 10,081 observations.
My problem is that I don't know the STATA code for creating the event window (the five minute price of the exchange rates when the announcement occurs) and the estimation window (the day before, leading up to the annoucement and the 5 minute prices after the announcement). I have multiple announcements in the excel file that (luckily) happen at the same time every time but different months, days and years.
I was trying to follow the princeton university stata guide for event studies: https://dss.princeton.edu/online_hel...ventstudy.html but this link only deals with days and not times of events and I am not sure how to create the windows.
if anyone could help me with this, that would be fantastic.
Sophie.
I'm new to STATA an not very familiar with it. I'm having some trouble creating an event window and an estimation window. My data consists of macroeconomic announcements from the bank of england from 2007 until the end of 2013 and high frequency exchange rates (5 minute intervals). I'm essentially trying to test the effect of these announcements on the price of exchange rates. I have exchange rate data for the day before the event and the day of the event. My data goes as follows: A1 year, B1 month, C1 day, D1, time (eastern US), E1 price EUR/USD, F1 GBP/USD, G1 EUR/GBP and H1 announcement (1 if announcement and 0 if not) and I have 10,081 observations.
My problem is that I don't know the STATA code for creating the event window (the five minute price of the exchange rates when the announcement occurs) and the estimation window (the day before, leading up to the annoucement and the 5 minute prices after the announcement). I have multiple announcements in the excel file that (luckily) happen at the same time every time but different months, days and years.
I was trying to follow the princeton university stata guide for event studies: https://dss.princeton.edu/online_hel...ventstudy.html but this link only deals with days and not times of events and I am not sure how to create the windows.
if anyone could help me with this, that would be fantastic.
Sophie.
Comment