在esttab中更改内部标题

时间:2018-09-19 05:41:58

标签: stata

我的previous question中答案的代码为我提供了所需的输出:

webuse nlswork, clear
eststo clear

mixed ln_w grade age c.age#c.age ttl_exp tenure c.tenure#c.tenure || id:
eststo model

estat icc
estadd scalar ICC = `r(icc2)'

esttab model, label star(* 0.05 ** 0.001 *** 0.0001) b(%9.4f) mtitles aic bic ///
scalars(ICC ll chi2_c p_c k_f k_r) 

但是,如何将内部标题ln(wage/GNP deflat~)lns1_1_1lnsig_e更改为更有意义的内容?

1 个答案:

答案 0 :(得分:2)

您只需要使用eqlabels选项:

esttab model, label star(* 0.05 ** 0.001 *** 0.0001) b(%9.4f) mtitles aic bic ///
scalars(ICC ll chi2_c p_c k_f k_r) eqlabels("Heading 1" "Heading 2" "Heading 3")  

------------------------------------
                              (1)   
                            model   
------------------------------------
Heading 1                          
current grade comp~d       0.0708***
                          (39.42)   

age in current year        0.0318***
                          (11.71)   

age in current yea~r      -0.0007***
                         (-14.48)   

total work experie~e       0.0352***
                          (30.95)   

job tenure, in years       0.0371***
                          (23.63)   

job tenure, in yea~r      -0.0018***
                         (-18.15)   

Constant                   0.1472** 
                           (3.29)   
------------------------------------
Heading 2                           
Constant                  -1.3185***
                         (-97.34)   
------------------------------------
Heading 3                           
Constant                  -1.2302***
                        (-265.96)   
------------------------------------
Observations                28099   
AIC                      1.83e+04   
BIC                      1.84e+04   
ICC                        0.4560   
ll                      -9.15e+03   
chi2_c                  8802.1857   
p_c                        0.0000   
k_f                        7.0000   
k_r                        2.0000   
------------------------------------
t statistics in parentheses
* p<0.05, ** p<0.001, *** p<0.0001