Hi everyone!
In the same vein as Davis (http://faculty.haas.berkeley.edu/lda...JPE%202008.pdf), I want to estimate the effect of a speed-limit reduction on air quality/pollution emission. I have gathered high-frequency data (hourly air pollution for different pollutants from different monitoring stations over multiple years). I will do a Regression Discontinuity Design where the independent variable is time, also called Regression Discontinuity in time.
I have already created my set of DateTimes as shown on the screenshot #1 below. However, I cannot use these DateTimes as a the independent variable when I run a regression. Indeed, when using rdrobust and rdplot, it is displayed "c() should be set within the range of DATETIME", c() being the cutoff date (see screenshot #2). It therefore appears that DateTimes is not taken into account as a variable in itself. How can I transform DateTime as a variable I can use in my regression, especially for the cutoff?
I thank y'all!
Array
Array
Related Posts with Using DateTime as Independent Variable - Regression Discontinuity in Time
Create binary variableHi Statalist, I have question regarding the binary variable. This is the example of my data. Code: …
Calculate Time Between DatesSample: a=01-Jan-50 % January 1 1950 b=16-Feb-18 % February 16 2018 Desired output: 68.17 Essent…
Testing if the mean of a variable has changed significantly over timei am doing an assignment on bank mergers and want to see if there is a significant difference in the…
Hurdle Model: For the selection model can I use Heteroscedastic Probit model instead of a logit/probit model?I am working to estimate a demand model for solar installations. Dependent variable is a count varia…
Interpreting output of the margins command after logitDear all I have a naive question that I can't answer from reading the manual (because I don't under…
Subscribe to:
Post Comments (Atom)
0 Response to Using DateTime as Independent Variable - Regression Discontinuity in Time
Post a Comment