A snippet of my data resembles the following:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(year y x) 1990 121 123 1990 213 123 1990 213 3 1990 3 12 1990 1 23 1990 1 123 1990 4 123 1991 23 123 1991 3 123 1991 12 123 1991 123 123 1991 123 1 1991 123 3 1991 12 313 1991 32 123 end
What I wish to do, is to graph the coefficient on x by year, along with the confidence interval bands. I am presently using the following code:
Code:
forvalues i = 1990/1991 { regress y x if year == `i' estimates store year`i' local allyears `allyears' year`i' || local labels `labels' `i' }
Code:
coefplot `allyears', keep(x) vertical bycoefs bylabels(`labels')
Code:
display "`allyears'"
Any help on this is much appreciated.
CS
0 Response to Graphing Coefficients by Year-
Post a Comment