Creating/Changing table 格式使用 estout 还是 est table?

Creating/Changing table format using either estout or est table?

我想生成一个 table,其中包括低于正常标准误差的面板 panel bootstrapped standard errors 以及末尾的 significance level。我是 Stata 的新手,能够生成以下结构:

est table RE REboot FE FEboot ,se stats(N)

其中 FEboot & REboot 对应 panel bootstrapped standard errors。所需的输出可能如下所示:

            RE            FE

  Var1     1.109541     1.109541 
         (-.3294736)   (-.3294736)    
         ( boot se )   ( boot se )

使用 estoutmatmap,均来自 SSC (ssc install <command>):

sysuse auto, clear

// clear previously stored estimates        
estimates clear
eststo clear

// regression with bootstrap
eststo: regress price weight mpg, vce(bootstrap)

// compute non-bootstrap std errors
matrix evmodel = vecdiag(e(V_modelbased))
matmap evmodel evmodel, map(sqrt(@))

// add to stored results
estadd matrix evmodel

// VCV matrix (non-bootstrap)
matrix list e(V_modelbased)

// std error vector (non-bootstrap)
matrix list evmodel

// evmodel are non-bootstrap std errors; se are bootstrap std errors; 
estout *, cells(b(star fmt(3)) evmodel(par fmt(2)) se(par fmt(2)))

当 Stata 计算自举标准误差时,它会保存自举和非自举 VCV 矩阵。您可以计算必要的标准错误,将它们添加到存储结果的集合中,最后输出到 table.