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

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


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: Date: Fri, 10 Dec 2004 09:19:55 -0500
Date   Fri, 10 Dec 2004 09:20:45 -0500 (EST)

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

Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html

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