Statalist The Stata Listserver


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

st: RE: Adding Multiple Variables with Similar Names


From   "Alex Ogan" <aogan@ArrowstreetCapital.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Adding Multiple Variables with Similar Names
Date   Fri, 23 Jun 2006 15:36:39 -0400

egen ExpendSum = rowtotal(*expend)

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of JEFFREY ROSEN
Sent: Friday, June 23, 2006 3:30 PM
To: statalist@hsphsun2.harvard.edu
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/



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