Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: How to add the same block of data to every individual


From   Quang Nguyen <[email protected]>
To   [email protected]
Subject   st: How to add the same block of data to every individual
Date   Wed, 8 Apr 2009 04:59:48 -1000

Dear All:

Suppose I have the following data set:

id          x
1           4
2           6
3           7
..................

and a "data block" as follows:

y           z
a           7
b           8
c           9

Do you know how I can add this data block to every individual in the
idividial data set. After adding, the new data set will look like the
following:

id     x    y           z
1     4     a           7
1     4     b           8
1     4     c           9
2     6     a           7
2     6     b           8
2     6     c           9
----------------------------

Many thanks!



--
"My father gave me the greatest gift anyone could give another person,
he believed in me." - Jim Valvano
*
*   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/



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