What are those two little quote-like symbols around the v in the command? They
look different from each other. How does one type them?
Thanks.
--
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
and Wilson Family Practice Residency
40 Arch Street, Johnson City, NY 13790
[email protected]
Public key generated with PGP 602i available at
http://home.stny.rr.com/ryancw/PGP602ipublickey.html
or via http://wwwkeys.us.pgp.net:11371
"If you want to build a ship, don't drum up the men to gather wood, divide the
work and give orders. Instead, teach them to yearn for the vast and endless
sea." [Antoine de St. Exupery]
On Wed, 9 Apr 2003 11:46:42 -0400, Nick Winter wrote:
>>-----Original Message-----
>>From: Richard Sherman [mailto:[email protected]]
>>Sent: Wednesday, April 09, 2003 11:41 AM
>>To: [email protected]
>>Subject: st: RE: RE: -reshape-, or -by-?
>>
>>
>>Nick,
>>
>>Wow. A one-line command that executes in about one second.
>>Very nice.
>>Thanks!
>>
>>How about:
>>
>> foreach v of varlist var1 var2 ... {
>> egen `v'_sum = sum(`v'), by(year)
>> }
*
* 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/