Dear all,
i'm implementing a regression discontinuity design. The sample is not stricly balanced, so I am controlling for the covariates significantly unbalanced between treatment and control groups (Calonico et al., 2018). When producing graphs I run the following command:
rdrobust depvar runvar, c(0) p(1) covs(covars) kernel(triangular) bwselect(mserd) vce(cluster clustervar) all
local bw=e(h_l)
rdplot depvar runvar if inrange(runvar, -`bw',`bw'), c(0) kernel(triangular) genvars nbins(10 10)
tw (scatter rdplot_mean_y rdplot_mean_x) (lpolyci depvar runvar if runvar<0&inrange(runvar, -`bw',`bw'),fcolor(none) degree(1)) (lpolyci depvar runvar if runvar>=0&inrange(runvar, -`bw',`bw'),fcolor(none) degree(1)), xline(0)
Yet, the above - other than for the local bandwidth - does not account for the covariates. I am wondering how Stata can draw the linear regression line (and the associated lines of the confidence interval) adjusted for my covariates.
Many thanks,
Carmela
Related Posts with Graph Regression Discontinuity with controls
Can -stcox-* do multilevel analyses with one failure?Hi everybody, Can -stcox- do multilevel analyses with one failure?; i.e., can -stcox- take the repe…
Assigning numbers from 1 to (total number of observations) randomly to the data setHello, What is the best way to assign a random number from 1 to 413,294 (which is the total number o…
GMM with spatially autocorrelated errorsHi, I have a panel data (300 panels and 30 years) and need to estimate a GMM (difference or system …
combining foreach and by with stringsHello, I found similar topics on the forum but the solutions provided do not seem to fit my case. …
Cleaning for missing observations (cross-sectional data) for a range of variablesDear all, I have a particular problem. I have a data of probability of default for 2000 entities an…
Subscribe to:
Post Comments (Atom)
0 Response to Graph Regression Discontinuity with controls
Post a Comment