Statalist The Stata Listserver


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

Re: st: varlist error? or feature?


From   smerryman@kc.rr.com
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: varlist error? or feature?
Date   Tue, 17 Oct 2006 14:47:16 -0500

----- Original Message -----
From: Jeph Herrin <junk@spandrel.net>
Date: Tuesday, October 17, 2006 2:34 pm
Subject: st: varlist error? or feature?
To: statalist <statalist@hsphsun2.harvard.edu>
<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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index