I am trying to plot coefficients for a regression where I have year, region and crop fixed-effects. The regression command looks like this:
regress yields i.region i.year i.crop c.t1#i.crop c.t2#i.crop c.t8#i.crop c.t9#i.crop c.t10#i.crop c.t11#i.crop c.t12#i.crop c.t13#i.crop c.t14#i.crop c.t15#i.crop c.t17#i.crop c.t18#i.crop c.t19#i.crop c.t20#i.crop c.t21#i.crop
I end up with a lot of different coefficients but the ones I care about are the temperature interacted with crop dummies. This means that for each temperature bin I have 8 coefficients (for each of the 8 crops I am looking at)
Here is an example of how part of the regression table looks like (for temperature bin 17)
crop#c.t17 |
1 | .2153015 .6866107 0.31 0.754 -1.131614 1.562217
2 | -.2161207 .7129302 -0.30 0.762 -1.614667 1.182425
3 | .1795203 .6893462 0.26 0.795 -1.172761 1.531802
4 | .9881432 .6951312 1.42 0.155 -.3754867 2.351773
5 | .3005558 .6953362 0.43 0.666 -1.063476 1.664588
6 | -1.20966 .7663634 -1.58 0.115 -2.713025 .2937053
7 | .9395245 .6866107 1.37 0.171 -.4073908 2.28644
8 | .1810834 .7911555 0.23 0.819 -1.370916 1.733083
Since I have region and year FE's, I also end up with a lot of coefficients that I do not want to plot.
I tried using coefplot and marginsplot for this but I just do not understand how to separate the coefficients and only have the ones I am interesting in on this graph.
Thank you so much for your help!
regress yields i.region i.year i.crop c.t1#i.crop c.t2#i.crop c.t8#i.crop c.t9#i.crop c.t10#i.crop c.t11#i.crop c.t12#i.crop c.t13#i.crop c.t14#i.crop c.t15#i.crop c.t17#i.crop c.t18#i.crop c.t19#i.crop c.t20#i.crop c.t21#i.crop
I end up with a lot of different coefficients but the ones I care about are the temperature interacted with crop dummies. This means that for each temperature bin I have 8 coefficients (for each of the 8 crops I am looking at)
Here is an example of how part of the regression table looks like (for temperature bin 17)
crop#c.t17 |
1 | .2153015 .6866107 0.31 0.754 -1.131614 1.562217
2 | -.2161207 .7129302 -0.30 0.762 -1.614667 1.182425
3 | .1795203 .6893462 0.26 0.795 -1.172761 1.531802
4 | .9881432 .6951312 1.42 0.155 -.3754867 2.351773
5 | .3005558 .6953362 0.43 0.666 -1.063476 1.664588
6 | -1.20966 .7663634 -1.58 0.115 -2.713025 .2937053
7 | .9395245 .6866107 1.37 0.171 -.4073908 2.28644
8 | .1810834 .7911555 0.23 0.819 -1.370916 1.733083
Since I have region and year FE's, I also end up with a lot of coefficients that I do not want to plot.
I tried using coefplot and marginsplot for this but I just do not understand how to separate the coefficients and only have the ones I am interesting in on this graph.
Thank you so much for your help!
Comment