Hi all,
I am investigating the impact of metro station accessibility on housing values. For this, I am using a DiD estimator. I am experiencing some difficulties and was hoping to find some input here.
With the help of QGis software, for every transaction in my dataset I can determine the distance to every metro station. For simplicity lets say that there are only two metro stations. Some transactions will experience accessibility (defined as x meters for the station) to multiple stations, others to only one, and others to none (i.e. observations can be exposed to multiple treatments).
My supervisor suggested I would run my regression as following:
transaction_price = P1 + P2 + T1 + T2 + P1*T1 + P2 *T2
Where the bold statement is an indicator of the (possibly) different treatment effects of accessibility to different metro stations.
However, I experience some trouble in constructing the code for this. More specifically, I want my control units to lay no further than 1500 meters from the station.
So for instance, if transaction 1 lays within the treatment zone of station 1 but station 2 lays further than 1500 meters, the only data from transaction 1 I wish to use in my regression is the a) price b) P1, which is the post indicator c) T1 which is the treatment indicator d) P1*T1 which is the treatment effect.
By transforming P2, T2 and P2T2 into missing values for observation 1 is not a way to solve this, I believe that observation 1 will then be "ignored" by Stata if I run the regression command.
I was thinking of some row condition to solve this problem but haven't find any solution so far and was wondering if there actually is a solution to this?
I hope my question is somewhat clear, I apologize in advance if I documented anything wrong.
Thank you in advance!
Related Posts with Multiple treatments per observation, difference in difference
Editing graph with a TIFF fileHi everyone, Trying to find out if there's a way for me to edit my graph using stata's graph editor…
Color changes with PNG export.On the left, we have the graph I actually want (ignore please the slight transparency difference bet…
Generating the "opposing" variable in a long datasetHi all, I am using Stata 17/SE on Mac and I am having trouble generating a variable using another o…
Formal tests of volatility in STATA17Dear Statlist: I have longitudinal data on employee data across multiple years and organizations. I…
pweight with melogitI have a Panel dataset with 260,647 data points consisting of 260,647 Respondents within 43,400 hous…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple treatments per observation, difference in difference
Post a Comment