|
首先做一个逐年分组代码
xtline S if year >= 2008 & year <= 2010, overlay t(year) i(Pollute2) xlabel(2008 2009 2010, grid) ytitle(&#34;Average S&#34;) name(g1_3)
xtline D if year >= 2008 & year <= 2010, overlay t(year) i(Pollute2) xlabel(2008 2009 2010, grid) ytitle(&#34;Average D&#34;) name(g2_3)然后如果想要竖着拼接就用:
grc1leg g1_3 g2_3, c(1)
横着拼接就用:
grc1leg g1_3 g2_3, r(1)
|
|