Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem with rdplot (RDD graph) when covariates included

    Hi everyone! I have a problem while trying to do the graphic illustration of the RDD using rdplot. The graph looks OK when I use a simple specification - just the dependent variable and one independent (running) variable. However, as I include covariates to see how they affect the point estimation and the slope of the lines at both sides of the cutoff point, the plotted line is suddenly well below the points on the graph. I looks like the intercept is not adjusted after the inclusion of the covariates. I know I probably do some stupid mistake but I can't find any way to fix it, and the help file is not verey informative
    I will be grateful for help. Below I paste the syntax, and the graph
    rdplot wynik_gm_m_std2015 dist_rus_aus_bord if abs(dist_rus_aus_bord)<50& ordinary==1&(ktory_zabor==2|ktory_zabor==3), p(1) covs (perc_boys l_uczG perc_dysl log_popul proc_pom_spol_2008 log_doch_wlas_pc_2015 perc_higher ) weights(l_uczG) h(50)


    Click image for larger version

Name:	Graph.png
Views:	1
Size:	13.8 KB
ID:	1445121
    Attached Files
    Last edited by Mikolaj Herbst; 21 May 2018, 13:21.

  • #2
    I am having the same problem. My understanding is that rdplot currently sets the values of the covariables to 0 rather than equal to their means. See https://sites.google.com/site/rdpackages/rdrobust
    Upgrade to change this is supposed to come this summer (2019).

    Comment

    Working...
    X