Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: how to transform variables again!


From   econqian <qian@foi.dk>
To   statalist@hsphsun2.harvard.edu
Subject   st: how to transform variables again!
Date   Tue, 15 Nov 2011 04:39:56 -0800 (PST)

Hi, all
      How to transform the original format of two variables to the new
format of two variables?
Original format
code	Var1	Var2
	4	8
1	54	89
2	87	28
3	39	75
4	99	96
5	119	100

New format
code	Va1	Var2
1	54	4
2	87	4
3	39	4
4	99	4
5	119	4
1	89	8
2	28	8
3	75	8
4	96	8
5	100	8


Many thanks in advance,
Qian



--
View this message in context: http://statalist.1588530.n2.nabble.com/how-to-transform-variables-again-tp6996146p6996146.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index