Announcement

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

  • event study help--coefplot plotting omitted coefficient?

    Hello,

    I am trying to plot coefficients from an event study using coefplot. You can see in my regression that I omit rel_date_x_diff5. In my regression results, it also shows that rel_date_x_diff19 is omitted--stata omits this one. However, in coefplot, a coefficient shows up for rel_date_x_diff19 with intervals and that is not zero. I am confused on how coefplot is plotting this when it has been omitted from my regression. Do you see any errors here? Thnaks in advance.

    Code:
    areg units rel_date_x_diff0-rel_date_x_diff4 o.rel_date_x_diff5 ///
        rel_date_x_diff6-rel_date_x_diff19 rel_date0-rel_date19 i.qtr ///
        if units_pre>=100, a(group_provider_service)
    count if e(sample)
    coefplot, keep(rel_date_x_diff*) vertical base omitted msymbol(diamond) ///
            xtitle("QTR Relative to Price Change") ytitle("# of Units") title(">=100 units per QTR") ///
            mcolor("106 208 200") ciopts(lcolor("118 152 160")) note("N=`r(N)'") ///
            yline(0,lcolor("106 208 200") lpattern(dash)) xline(6, ///
            lpattern(dash) lcolor(red)) scale(.8) xsize(9) ysize(7) ///
            graphregion(fcolor(white) ifcolor(white) ilcolor(white)) ///
            xscale(lcolor("0 51 102")) yscale(lcolor("0 51 102")) coeflabels(, truncate(10) angle(45)) ///
            xlabel(, labcolor("0 51 102") noticks) 
    graph export ../output/es_units_diff_rate_units100.pdf, replace

  • #2
    Could you post a dataexample using the command dataex?

    Comment

    Working...
    X