Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Re: Re: no observation in while-loop


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   Re: st: Re: Re: no observation in while-loop
Date   Fri, 19 Jun 2009 21:21:59 +0200

<>

Well, these are -scalar-s in the sense that you can save a single coeff or se for every covariate in every regression. But Martin B.`s request was for -predict-, i.e. a whole vector... How do you do that with -statsby-?

HTH
Martin
_______________________
----- Original Message ----- From: "Maarten buis" <[email protected]>
To: <[email protected]>
Sent: Friday, June 19, 2009 9:17 PM
Subject: Re: st: Re: Re: no observation in while-loop



--- On Fri, 19/6/09, Martin Weiss wrote:
Unfortunately, -statsby- will only accept
-scalar- results, otherwise we could even do away with the
loop....

not true:
sysuse auto, clear
recode rep78 1/2=3
statsby, by(rep78) clear: reg price foreign mpg
list

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://home.fsw.vu.nl/m.buis/
-----------------------------------------







*
*   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/



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