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
Need help in estimating random intercept value for each group for reporting into a journal summary table???I would like to estimate a random intercept linear regression model based on several covariates, and…
Way to standardize table size using esttab?Hello, I am having a problem with two regression output tables I've created not being the same size.…
TWFE for pooled cross sectionsHi, I currently have a dataset looking at 500 days, which is from 3rd April 2018 to 16th August 2019…
multiple line refcat with labelsHi, I am running two regressions and report coefficients by using esttab. I am trying to add two ro…
Generate a variable equal to 1 when a countryI'm sorry, my screen froze and I posted this topic by mistake. Here is the actual link : https://www…
Subscribe to:
Post Comments (Atom)
0 Response to Using DateTime as Independent Variable - Regression Discontinuity in Time
Post a Comment