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

st: RE: Multiple commands under "By varlist"?


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: RE: Multiple commands under "By varlist"?
Date   Fri, 25 Jun 2004 16:07:31 -0500

How about -statsby-

-statsby "reg returns factor" _b, by(year)-

Scott


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Subhankar Nayak
Sent: Friday, June 25, 2004 2:46 PM
To: [email protected]
Subject: st: Multiple commands under "By varlist"?

Hello all,

Is it possible to give multiple commands following a particular
by varlist
command?

Can I give something like:

by month: {
regress returns factor
replace tintcp = _b[_con]
replace tslope = _b[factor]
}


Of course, what I give here is not working, but is there anyway to make it
functional?

Thanks.


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

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