【发布时间】:2019-04-16 19:52:49
【问题描述】:
下面的代码使用本地向每个方程添加自定义文本并产生我想要的:
estimates clear
eststo clear
sysuse auto, clear
eststo w1: regress price mpg trunk length
estadd local number one
eststo w2: regress turn mpg trunk length
estadd local number two
eststo w3: regress displacement mpg trunk length
estadd local number three
esttab w1 w2 w3, stats(number)
但是,我希望能够在 esttab 命令语法中编写自定义文本,而不是在使用本地之前。
这是不正确的,但该选项可能类似于以下内容:
estimates clear
eststo clear
sysuse auto, clear
eststo w1: regress price mpg trunk length
eststo w2: regress turn mpg trunk length
eststo w3: regress displacement mpg trunk length
esttab w1 w2 w3, stats("number", "one" "two" "three")
我能否以某种方式在esttab 命令中插入一个选项,以便拼出我想要的内容?我知道有一个indicate() 选项,但我不知道它是否可以满足我的需要。
【问题讨论】:
标签: formatting format string-formatting stata