dropvars dumt*
tab year,gen(dumt)
drop dumt1
global y lex
global xx lgdpcn lgdpfc ldis lpgdpcn prr dumt*
global zx mo tarr sys lang fta wto
global zv mo tarr sys lang fta wto mat e = J(6,6,0)
forvalues i = 4(1)13{
local year = 2000 + `i'
mat e[`i',1] = `year'
forvalues j = 1(1)5{
qui sum te if (year==`year'&group==`j')
mat e[`i',`=`j'+1'] = r(mean)
}
qui sum te if year == `year'
mat e[`i', 10] = r(mean)
我选取的年度为2004-2013年,期间10年。样本组别为5个组。在加粗部分e=J()中是错的,因为运行的时候系统提示conformability error(r503)。这是矩阵错误的情况,谁能告诉我加粗部分中的是怎么弄得。