----- Original Message -----
From: Jeph Herrin <[email protected]>
Date: Tuesday, October 17, 2006 2:34 pm
Subject: st: varlist error? or feature?
To: statalist <[email protected]>
<snip>
> . egen total=rtotal(com1-com45)
>
> totalled all the -medcom- variables as well. How can I reference
> just those variables that start with -com-?
>
egen total = rowtotal(com*?)
Scott
*
* 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/