假设我有这个数据集:
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")
1 回答
你能“自动”澄清你的意思吗?我无法测试这个,因为当我加载它时这些变量不在auto数据集中,但你可以显式地调用变量标签宏而不是变量标签:
请尝试
help extended_fcn
了解详情 .