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
Converting results from percentage point to percentHello STATALISTERS, I am estimating the effects of a program using the fixed effects model in which …
separate regression of different groups in the panel dataHi everyone! I seem to stuck in the problem of doing regression of different groups within the panel…
Wage increase for quarterly data in GermanyHello everyone! I have a huge dataset with 270864 observations on gross hourly wage split into diffe…
Having issues with GcrobustvarDear scholars, I am having some issues using Gcrobustvar estimator for causality. After loading the …
Adding mean and sd to estpost / esttabHello everyone I want to add two extra columns for mean and standard deviation to my correlation ma…
Subscribe to:
Post Comments (Atom)
0 Response to Event Study
Post a Comment