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
Counting observations within a particular time-intervalDear Stata-enthousiasts, I'm currently doing some research on paid parking in 3 parking garages The…
Cointegration test for panel varDear all, I'm very new to stata and panel. I want to perform cointegration test for panel var. ex) …
Wilcoxon test for (in)equality of mediansHello everyone, For my univariate analyses I am running a number one-sample t-tests. However, I woul…
Fraction By GroupDear Stata Users; I have cross sectional data constructed by combining two waves of surveys. The edu…
Quarterly GDP disaggregation to monthly levels - Gravity model estimationDear Forum, I am currently working on a gravity model to estimate the effects on trade of an exogen…
Subscribe to:
Post Comments (Atom)
0 Response to Graph Regression Discontinuity with controls
Post a Comment