Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Averaging across variables


From   "kelly johnson" <[email protected]>
To   [email protected]
Subject   st: Averaging across variables
Date   Thu, 14 Jul 2005 09:24:44 -0400

hi folks,

suppose i have a data set with say, many variables.

how can i create a new variable that is the (arithmetic) mean of all the variables starting with certain letters (i.e. using the '*' operator)?

thanks again!

kj

_________________________________________________________________
Don�t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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