这个能稍微接近你的要求:
. sysuse nlsw88, clear
(NLSW, 1988 extract)
. table race , by(collgrad) c(mean wage sd wage min wage max wage n wage) format(%4.2f)
-----------------------------------------------------------------------------
college graduate |
and race | mean(wage) sd(wage) min(wage) max(wage) N(wage)
-----------------+-----------------------------------------------------------
not college grad |
white | 7.32 5.76 1.00 40.20 1,217
black | 5.88 3.72 1.15 39.23 480
other | 6.94 3.17 2.70 12.68 17
-----------------+-----------------------------------------------------------
college grad |
white | 10.30 5.97 1.03 40.20 420
black | 11.36 7.55 2.48 40.75 103
other | 11.60 6.98 1.81 25.81 9
-----------------------------------------------------------------------------
是的。
那天我把by放到前面试验了一下,就忘了放到后面去试试看看了。
又学了一招啊。


雷达卡

京公网安备 11010802022788号







