Dear colleagues,
given data on 12 months, I regressed my outcome on dummies for periods 2-12, plus controls c1-c5, to see where the outcome changes significantly relative to the baseline month:
.
Now I can plot the 11 coefficients together with confidence intervals:
But I'm wondering how I can best plot the corresponding predictions? I know I could manually add to the coeffcient the constant, plus each of coefficients on c1-5 times the respective mean value. Or I could use predict, then average for each period, then plot those averages. But in neither case would be sure how to get the correct confidence intervals.
Is there a pre-programmed command for this, as option of -coefplot- or otherwise?
Thanks! PM
given data on 12 months, I regressed my outcome on dummies for periods 2-12, plus controls c1-c5, to see where the outcome changes significantly relative to the baseline month:
Code:
reg outcome t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 c1 c2 c3 c4 c5
Now I can plot the 11 coefficients together with confidence intervals:
Code:
coefplot, keep(t*) vertical levels(95)
Is there a pre-programmed command for this, as option of -coefplot- or otherwise?
Thanks! PM
Comment