egen ExpendSum = rowtotal(*expend)
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of JEFFREY ROSEN
Sent: Friday, June 23, 2006 3:30 PM
To: [email protected]
Subject: st: Adding Multiple Variables with Similar Names
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/
This message is intended solely for the designated recipient(s). It may contain confidential or proprietary information and may be subject to confidentiality protections. If you are not a designated recipient, you may not review, copy, or distribute this message. If you receive this in error, please notify the sender by reply e-mail and delete this message.
Arrowstreet Capital, L.P. is an Equal Opportunity Employer.
*
* 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/