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