Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: varlist error? or feature?


From   [email protected]
To   [email protected]
Subject   Re: st: varlist error? or feature?
Date   Tue, 17 Oct 2006 14:47:16 -0500

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



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index