Hi
How to adjust the code below to show the coefficients of BOTH gdp and infl on the same graph?
If I run the code as is it gives me two graphs and I want one graph that show the coefficients for both variables gdp and inf
Thanks
How to adjust the code below to show the coefficients of BOTH gdp and infl on the same graph?
If I run the code as is it gives me two graphs and I want one graph that show the coefficients for both variables gdp and inf
Code:
eststo clear foreach s in portfolio_board { foreach v in 1 2 3 4 5 6 7 8 9 10 { eststo `s'`v', title(`s'`v'):xi: qui newey `s'`v' gdp infl ,lag(8) force } coefplot `s'1, bylabel(P1) || `s'2, bylabel(P2) || `s'3, bylabel(P3) || `s'4, bylabel(P4)|| `s'5, bylabel(P5) || /// `s'6, bylabel(P6) || `s'7, bylabel(P7) || `s'8, bylabel(P8) || `s'9, bylabel(P9) || `s'10, bylabel(P10) /// drop(_cons) keep(gdp infl) bycoefs vertical /// yli(0, lp(solid) lc(gray)) ylabel(,nogrid) levels(90) /// title(Portfolios, margin(sides))name(`s', replace) aspectratio(0, placement(top))legend(off) ciopts(recast(rcap)) }
Comment