Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Creating a new series from a group of multiple series
From
Syed Basher <[email protected]>
To
Statalist <[email protected]>
Subject
st: Creating a new series from a group of multiple series
Date
Wed, 9 Mar 2011 00:44:09 -0800 (PST)
Dear Statalist,
I have 10 series with 30 observation each. The series are labeled as y1,
y2,y3,...,y10. I want to generate a new series (say, x1) which is the median
of 10 series, and x1 should also contain 30 observation. So basically x1 will be
the median of 10 y but by observation. I tried doing it using foreach loop, due
to wrong commands I got 10 median observations for each y. Any hint or help is
highly appreciated. I am using Stata 11.1.
Syed Basher
Doha, Qatar
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/