There is no straightforward solution for what you want. Here's an
example that comes close, but the model types are included in the
footer:
. eststo clear
. sysuse auto
(1978 Automobile Data)
. eststo: qui tobit foreign price mpg, ll(0)
(est1 stored)
. eststo: qui logit foreign price mpg
(est2 stored)
. estout, cells(b(star fmt(3)) se(par fmt(3))) ///
> numbers("Model ") ///
> mlabels(, depvar) ///
> collabels(none) ///
> stats(r2_p N cmd, fmt(3 g))
--------------------------------------------
Model 1 Model 2
foreign foreign
--------------------------------------------
main
price 0.000* 0.000*
(0.000) (0.000)
mpg 0.120*** 0.234***
(0.033) (0.067)
_cons -4.010*** -7.648***
(1.122) (2.044)
--------------------------------------------
sigma
_cons 1.047***
(0.189)
--------------------------------------------
r2_p 0.132 0.190
N 74 74
cmd tobit logit
--------------------------------------------
The only solution I can see to get the depvar and the cmd in the
header is to include them in the same cell. If you use LaTeX, then you
could take additional steps so that the cell has multiple lines. A
similar solution exists for RTF. Please let me know what the desired
output format is. I will then try to come up with an example.
ben
On Mon, Jun 1, 2009 at 10:38 AM, N Fukugawa <[email protected]> wrote:
> statalisters,
> i use stata9 and am new to estout command.
> when i put
>
> estout using 090601estout.txt, starlevels(* 0.05 ** 0.01) cells(b(star
> fmt(3)) se(par fmt(3))) stats(r2_p N, fmt(%9.3f %9.0g)) mlabels(, dep)
> replace
>
> i get
>
> sharejp1 sharejp1
> b/se b/se
> model
> rdsalejp 0.631 0.7
> -0.514 -0.521
> adsalejp 0.262 0.255
> -0.61 -0.611
>
> how do i get output like this using estout?
>
> Model1 Model2
> sharejp1 sharejp1
> tobit logit
> rdsalejp 0.631 0.7
> -0.514 -0.521
> adsalejp 0.262 0.255
> -0.61 -0.611
>
> the first row represents the number of the model, the second row name
> of dependent variable, and the third row estimation model.
>
> thank you in advance.
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/