Statalist The Stata Listserver


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

st: Adding Multiple Variables with Similar Names


From   JEFFREY ROSEN <[email protected]>
To   [email protected]
Subject   st: Adding Multiple Variables with Similar Names
Date   Fri, 23 Jun 2006 15:30:10 -0400

Hi,

I have another basic question for Stata 9. I have about 10 variables that all end with expend. Is there a command that will allow me to generate a new variable that adds up all of the expend variables? I know that there are commands like -drop *expend-, but is there anything that would add up the variables?

Thanks in advance,

Jeff Rosen

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