I am trying to do a diff-in-diff analysis on the effect of endorsement on a product. This is what my data set looks like:
dates times price YeezyShoe date_of_purchase Yandhi_Release Ye_Release Kanye_Chicago
April 2, 2019 3:55PM 128 0 21641 0 0 0
At the moment, I have these commands in order to create treatment date ranges:
gen date_of_purchase = date(dates, "MDY")
gen byte Yandhi_Release=inrange(date_of_purchase,td(29sep20 18),td(3october2018))
gen byte Ye_Release=inrange(date_of_purchase,td(01june2018) ,td(05june2018))
gen byte Kanye_Chicago=inrange(date_of_purchase,td(15august 2018), td(19august2018))
If the shoe is endorsed, YeezyShoe=1, and if the shoe is the control shoe, it is YeezyShoe=0.
This is what my current diff-in-diff regression looks like; however, I am having a hard time isolating this effect and formulating a regression.
gen treatXafter = Yandhi_Release * YeezyShoe
reg __ YeezyShoe Yandhi_Release treatXafter
Related Posts with Diff-in-Diff
A fixed effects questionHi, I'm running a simple hedonic regression using a property dataset, where: regress ln_price …
Including Marginal Effects in a TableDear all, I am running probit regressions to try and find the independent variables that influence …
Quasi Poisson regressionHello, What is the command used to perform quasi Poisson regression? Thanks …
vce(cluster) does not work in fixed effects when there are only two observations per groupI am working with a balanced individual-year panel dataset. All the individuals are observed for two…
back transform square-root linear regressionHi all, I have conducted a linear regression where outcome measures were square-root transformed (…
Subscribe to:
Post Comments (Atom)
0 Response to Diff-in-Diff
Post a Comment