【发布时间】:2018-02-07 21:37:16
【问题描述】:
我能够创建我想要的大部分内容:两个单向表格(报告累积百分比)并排在同一张表中。这很好,但我需要一些格式化方面的帮助。一个玩具例子:
sysuse auto, clear
eststo clear
eststo a: estpost tabulate rep78 if foreign==0
eststo b: estpost tabulate rep78 if foreign==1
esttab, cells("cumpct(fmt(2))") ///
varlabels("a" "b") ///
nonumber nomtitle noobs ///
collabels("a" "b")
这会产生以下结果:
--------------------------------------
a a
--------------------------------------
1 4.17
2 20.83
3 77.08 14.29
4 95.83 57.14
5 100.00 100.00
Total
--------------------------------------
我该怎么做:
- 去掉总行和
- 使列标签具有不同的名称?我希望将第二列称为
b,而不是a。我尝试了 collabels 中内容的不同变体(a b、"a b"、""a" "b""),但似乎没有任何效果。
【问题讨论】: