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

RE: st: Date: Fri, 10 Dec 2004 09:19:55 -0500


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Date: Fri, 10 Dec 2004 09:19:55 -0500
Date   Fri, 10 Dec 2004 18:21:45 -0000

More flexible for wildcards etc. would be 

program amadou
	syntax anything, BYgroup(varlist)
	di "`anything'"
	di "`bygroup'"
end

Nick 
[email protected] 

Kit Baum <[email protected]>                  

> Amadou wants to do
> 
> Myprog x1 x2 x3, by(V1 V2 V3 V4 V5 V6)    with an indeterminate number
> of vars in by() and
> where the code reads BYGroup([varlist2])   (I'm not sure what Stata
> thinks of that)
> 
> But the name of the option that can be worked with is bygroup, not
> varlist2:
> 
> . program amadou
>    1. syntax anything, BYgroup(string)
>    2. di "`anything'"
>    3. di "`bygroup'"
>    4. end
> 
> . amadou turn, by( price mpg rep78)
> turn
> price mpg rep78

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