【发布时间】:2015-12-15 18:23:54
【问题描述】:
假设我有这个数据集:
webuse union, clear
我要进行制表:
tab union smsa
我想将它导出到一个 .tex 文件并让它看起来类似于上面的表格。有没有办法让类似于下面的代码自动显示标签(union worker 和 lives in SMSA),而不必硬编码?
eststo clear
eststo: estpost tab union smsa
esttab est1 using "${path}/example.tex", cell(b) unstack noobs ///
replace nonum collabels(none) eqlabels(, lhs("union worker")) ///
mtitles("lives in SMSA")
【问题讨论】:
-
将
sysuse auto更正为webuse union。