【发布时间】:2023-01-30 01:55:51
【问题描述】:
我想在一行中esttab特定变量
在 Stata 中使用数据
eststo clear
sysuse auto
eststo: quietly regress price weight mpg
eststo: quietly regress price weight foreign
esttab
--------------------------------------------
(1) (2)
price price
--------------------------------------------
weight 1.747** 3.321***
(2.72) (8.39)
mpg -49.51
(-0.57)
foreign 3637.0***
(5.44)
_cons 1946.1 -4942.8***
(0.54) (-3.67)
--------------------------------------------
N 74 74
--------------------------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001
我需要的是 mpg 和 foreign 导致同一行。
在我的数据中,变量具有相似的名称。
像 var_1 var_2 var3
--------------------------------------------
(1) (2)
price price
--------------------------------------------
weight 1.747** 3.321***
(2.72) (8.39)
mpg/foregin -49.51 3637.0***
(-0.57) (5.44)
_cons 1946.1 -4942.8***
(0.54) (-3.67)
--------------------------------------------
N 74 74
--------------------------------------------
t statistics in parentheses
* p<0.05, ** p<0.01, *** p<0.001
【问题讨论】:
标签: stata