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
Regression with year and country fixed effectsHi there, First of all I am new to this forum and I've been trying to find a relatable post but was…
Problems with updating Stata and dragging and dropping filesProblem #1. Stata update used to work, but now when it relaunches nothing happens. Problem #2. Stat…
New Variable carrying all used Company Names to create ID variableHello, I find it difficult to put my problem into a simple heading so the name of the thread might …
Principal Component AnalysisHello, I am carrying out a Principal Component Analysis on a rather large dataset (6500 observation…
Panel data: mean per person for certain time periodHello together! I have Panel Data and I would like to create a variable which is the mean over the …
Subscribe to:
Post Comments (Atom)
0 Response to Using DateTime as Independent Variable - Regression Discontinuity in Time
Post a Comment