Hi there,
I have a panel dataset and wish to do a regression analysis that involves a variable, "Years since the Financial Crisis" (which refers to the most recent financial crisis of 2007).
I am looking for advice on how to code this.
Should I simply code all years as 0 up to and including 2007, and then 1 for 2008, 2 for 2009 etc? Or is there a better method?
Thanks in advance!
Related Posts with Creating Variable - years since an event
Cox model refuses to calculate SEs for year dummies!Dear Statalist, I am looking for help with my Cox regression (a survival analysis). My unit of ana…
grqreg graph optionshi I am running multiple quantile regressions on different samples and use grqreg to show it graphi…
How to add zero before the observation in a variable?Dear Stata user, Suppose, I have a varibale named "price", which ranges from the 3291 (4 digits) to …
Declaring data to be survival dataA beautiful morning to you all. I am new in this forum. I am running survival analysis to establish …
Triple-Difference (DDD) Estimation and coefficientsDear Everyone, I have a question regarding the estimation of the following dataset example using Tr…
Subscribe to:
Post Comments (Atom)
0 Response to Creating Variable - years since an event
Post a Comment