Hi Statalist
I'm trying to run multiple regressions with different variables, but I want to have all the estimates in one column. Here's what I'm doing:
And I get:
But I'm looking for something like this:
I'm also trying some "collect" commands here, but it does not work for me. I'd appreciate if anyone can help.
I'm trying to run multiple regressions with different variables, but I want to have all the estimates in one column. Here's what I'm doing:
Code:
sysuse auto est clear foreach x of varlist mpg price rep78 { logistic foreign `x' estimates store m_`x' } etable, estimates(m_*) /// cstat(_r_b, nformat(%4.2f)) /// cstat(_r_ci, cidelimiter("-") nformat(%6.2f)) /// column(depvar)
Code:
. etable, estimates(m_*) /// > cstat(_r_b, nformat(%4.2f)) /// > cstat(_r_ci, cidelimiter("-") nformat(%6.2f)) /// > column(depvar) ---------------------------------------------------------------- foreign foreign foreign ---------------------------------------------------------------- Mileage (mpg) 1.17 [1.06- 1.30] Price 1.00 [1.00- 1.00] Repair record 1978 7.17 [2.80- 18.30] Intercept 0.01 0.34 0.00 [0.00- 0.13] [0.11- 1.08] [0.00- 0.01] Number of observations 74 74 69 ----------------------------------------------------------------
But I'm looking for something like this:
Code:
-------------------------------------------------------------------------- foreign_coef CIs P-values -------------------------------------------------------------------------- Mileage (mpg) 1.17 [1.06- 1.30] <0.05 Price 1.00 [1.00- 1.00] 0.676 Repair record 1978 7.17 [2.80- 18.30] <0.001 ---------------------------------------------------------------------------
Comment