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
Reporting an error with assumptions revision after VECM trend estimation.Greetings. I want to report an issue I've discover when estimating a VECM model with trend option, l…
bugs for reclink?Dear all, Please run the code below, it says something was wrong, how to fix this? Code: tempfile …
How do I extract month and year data from combined variables?Hi, I have 51 state name variables(long data) and income data (e.g.starting from inc_JAN_1996, inc_F…
How to get matching results in combination?Dear all, here is the code: Code: tempfile using * Example generated by -dataex-. To install: ssc …
Super simple syntax questionI have a variable that contains totals of advertising costs for different products from different ye…
Subscribe to:
Post Comments (Atom)
0 Response to Event Study
Post a Comment