Hi Statalist users,
I am conducting an event study where the outcome variable is the total number of sick spells for region i in the year-month t (variable modate). In total I have 84 year-month observations for each of the 50 regions forming a balanced panel. The key explanatory variable is x. To conduct the event study, I have created eight leads and lags (as dummy 1-0 variables) and the "event" dummy. The problem is that I need to run the regression only within the lag 8 - lead 8 period, in other words drop everything after lead 8 and lag 8 (so that I can choose the event variable as the reference one), and I do not know how to do this.
This is the code I have so far:
xtset region modate
xtreg spells event L(1/38).event F(1/38).event i.month i.year, fe cluster(region)
This code gives me the estimates for all the observations, not only those within the ag 8 - lead 8 period.
I am using STATA version 15.
Related Posts with Event study - Dropping observations within a leads-lags framework
Random-Number Generator Version ##: set seed - different resultsI found an issue with using the RNG and set seed with different versions of Stata. I had used versio…
Update to -kmatch- available from SSCAn update to kmatch is available from the SSC archive. Type Code: . ssc install kmatch, replace t…
Anyway to conduct dynamic model on panel data by using xtabond command in stata?Dear all: I found a challenge when I run a dynamic model on long panel data. I am hopeful that you …
Estimating Demand Elasticity with Log-Log Model | How to Specify Panel Regression?Hello, My objective is to estimate the effect that a 1% change in the volume of ride-share trips co…
Gsem -problems with SEM builder toolHello everyone, I am running a gsem model using the SEM builder and I keep getting this error: pare…
Subscribe to:
Post Comments (Atom)
0 Response to Event study - Dropping observations within a leads-lags framework
Post a Comment