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/