Dear All,
I have run a regression of the form:
I am interested in plotting the estimates with the 95% CI of the combined effect of (
I can calculate the combined estimates as follows:
How can I store the coefficient and 95 CI for all the estimates
I saw an earlier post but the specific commands were not clear and hence I will be very grateful for some specific help.
Sincerely,
Sumedha.
I have run a regression of the form:
Code:
eststo: reghdfe aopioid_ras int2006 int2007 int2008 int2010 int2011 int2012 int > 2013 int2014 int2015 int2016 unemprate east /// > int2006_east int2007_east int2008_east int2010_east int2011_east int2012_east i > nt2013_east int2014_east int2015_east int2016_east /// > CensusRuralShare2010 perc_white pop_ratio_65plus /// > [weight=pop_total], absorb(i.year i.countyFIPS) vce(c > luster countyFIPS) (analytic weights assumed) (converged in 5 iterations) note: east omitted because of collinearity HDFE Linear regression Number of obs = 33,433 Absorbing 2 HDFE groups F( 24, 3039) = 4.79 Statistics robust to heteroskedasticity Prob > F = 0.0000 R-squared = 0.6089 Adj R-squared = 0.5693 Within R-sq. = 0.0444 Number of clusters (countyFIPS) = 3,040 Root MSE = 4.1842 (Std. Err. adjusted for 3,040 clusters in countyFIPS) -------------------------------------------------------------------------------------- | Robust aopioid_ras | Coef. Std. Err. t P>|t| [95% Conf. Interval] ---------------------+---------------------------------------------------------------- int2006 | 9.926164 5.182502 1.92 0.056 -.2354009 20.08773 int2007 | 6.32521 3.637105 1.74 0.082 -.8062248 13.45664 int2008 | 7.171485 3.040367 2.36 0.018 1.210101 13.13287 int2010 | 13.89054 4.888414 2.84 0.005 4.30561 23.47548 int2011 | 13.56041 5.912389 2.29 0.022 1.967729 25.1531 int2012 | 6.19747 4.079553 1.52 0.129 -1.801494 14.19643 int2013 | 3.785004 4.824 0.78 0.433 -5.673629 13.24364 int2014 | 13.26759 5.48916 2.42 0.016 2.504743 24.03043 int2015 | 22.9769 10.32162 2.23 0.026 2.738838 43.21497 int2016 | 37.67179 13.32013 2.83 0.005 11.55442 63.78917 unemprate | .1409835 .0809161 1.74 0.082 -.0176723 .2996393 east | 0 (omitted) int2006_east | 1.045147 7.263032 0.14 0.886 -13.19581 15.2861 int2007_east | 12.27889 5.568436 2.21 0.028 1.360607 23.19717 int2008_east | 4.186853 4.51996 0.93 0.354 -4.675635 13.04934 int2010_east | 13.74968 5.823592 2.36 0.018 2.3311 25.16826 int2011_east | 11.54176 7.137946 1.62 0.106 -2.453932 25.53745 int2012_east | 3.910216 7.168708 0.55 0.585 -10.14579 17.96622 int2013_east | 4.060913 7.892771 0.51 0.607 -11.4148 19.53662 int2014_east | 12.60207 9.846917 1.28 0.201 -6.705222 31.90936 int2015_east | 31.3365 14.2346 2.20 0.028 3.426073 59.24693 int2016_east | 97.16012 20.14295 4.82 0.000 57.66492 136.6553 CensusRuralShare2010 | 1.53e+08 1.13e+08 1.35 0.177 -6.92e+07 3.76e+08 perc_white | .1384629 .1548491 0.89 0.371 -.1651567 .4420825 pop_ratio_65plus | -25.48138 15.5909 -1.63 0.102 -56.05115 5.08839 --------------------------------------------------------------------------------------
int2006+int2006_east), (
int2007+int2007_east),
(
int2008+int2008_east) etc
I can calculate the combined estimates as follows:
Code:
lincom int2006+int2006_east ( 1) int2006 + int2006_east = 0 ------------------------------------------------------------------------------ aopioid_ras | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- (1) | 10.97131 8.158032 1.34 0.179 -5.02451 26.96713 ------------------------------------------------------------------------------
(
int2006+int2006_east), (
int2007+int2007_east),
(
int2008+int2008_east) etc.? Once I have it stored how can I retrieve that information to plot using a twoway command?
I saw an earlier post but the specific commands were not clear and hence I will be very grateful for some specific help.
Sincerely,
Sumedha.
Comment