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   [email protected]
To   [email protected]
Subject   Re: st: Date: Fri, 10 Dec 2004 09:19:55 -0500
Date   Fri, 10 Dec 2004 11:01:14 -0500

Many thanks to Kit.



                                                                                                                                           
                      Kit Baum <[email protected]>                                                                                               
                      Sent by:                         To:       [email protected]                                            
                      owner-statalist@hsphsun2.        cc:                                                                                 
                      harvard.edu                      Subject:  st: Date: Fri, 10 Dec 2004 09:19:55 -0500                                 
                                                                                                                                           
                                                                                                                                           
                      12/10/2004 09:20 AM                                                                                                  
                      Please respond to                                                                                                    
                      statalist                                                                                                            
                                                                                                                                           
                                                                                                                                           
                                                                                                                                           
                                                                                                                                           




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/




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