Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Stata 9 issues bug report - statsby


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   st: Stata 9 issues bug report - statsby
Date   Sun, 01 May 2005 15:31:53 -0500

statsby doesn't work - using commands from help file

. sysuse auto,clear
(1978 Automobile Data)

.  statsby , by(for): regress price weight length mpg
(running regress on estimation sample)

      command:  regress price weight length mpg
           by:  foreign

Statsby groups
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
..

. sysuse auto,clear
(1978 Automobile Data)

. statsby _b , by(rep): heckman price mpg, sel(for=trunk)
(running heckman on estimation sample)

      command:  heckman price mpg, sel(for=trunk)
           by:  rep78

Statsby groups
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5

. sysuse auto,clear
(1978 Automobile Data)

. statsby mean=r(mean) median=r(p50), by(for): sum price, detail
(running summarize on estimation sample)

      command:  summarize price, detail
         mean:  r(mean)
       median:  r(p50)
           by:  foreign

Statsby groups
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
..


Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125     Fax (316) 263-0761
[email protected]


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index