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
add values to certain groupsHi everyone, I have a dataset on companies, its financial years, matching financial numbers and err…
Replacing values in a variableHello everyone. I am trying to replace the values in an old variable with ones from a new variable.…
Where do I find elemapi.dta ?I'm learning to do regression analysis with Stata following the link here : https://stats.idre.ucla.…
The standard deviation of common stock returns measured over the previous years.Hi everyone, for the replication of the following study: Bugeja, M., Matolcsy, Z.P., and Spiropoulo…
Added value of multivariate regression model (mvreg)Dear forum members, I am using a multivariate model (mvreg) to analyse the effect of many control v…
Subscribe to:
Post Comments (Atom)
0 Response to Using DateTime as Independent Variable - Regression Discontinuity in Time
Post a Comment