Dear all,
to perform my event study, I need not merge to datasets based on an identifier ID and multiple Dates around the event date. Do you have any suggestion of coding, that could perform this in the most efficient way?
For instance, I have the event date (Date) t and the ID in my master data, and want to extract the stock price on multiple days (lets say t+/-1 t+/-5 t+/-10) in my second dataset that consists of three variabel ID Date Price
As you can see matching only ID and Date gives me the price on my event date, but is there a way to write something like "merge ID (Date-1) ..." ?
Any suggestions helps
Related Posts with Event Study
Saving F stat after RegressionHi All, I have data that resembles the following: Code: * Example generated by -dataex-. To in…
David Roodman's xtabond2: why difference in no of observations between GMMdiff and GMMsysUsing the dataset abdata.dta I ran two commands, one with the noleveleq option and one without. The …
State Panel data - generating a year treatment variable with a month component?I have annual state panel data. Each state implemented a state reform at different times (year). I h…
Deciding between RE and FEI have a theoretical question concerning usage of the FE model for panel data regression. I'm curre…
Matching option expiration date with a date closest to earnings announcementDear stata users, How do I match options with expiration date closest to earnings announcement date…
Subscribe to:
Post Comments (Atom)
0 Response to Event Study
Post a Comment