Statalist


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

st: reshape


From   "Richard Pitman" <richard.pitman@oxfordoutcomes.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: reshape
Date   Wed, 5 Sep 2007 10:35:01 +0100

I have data in the following format:

ID	A	B	C
1	a	x	3
1	a	y	2
1	b	z	10
2	a	x	4
2	a	y	7
2	b	z	11
3	a	x	14
3	a	y	10
3	b	z	6

And would like to convert it to

ID	Cax	Cay	Caz	Cbx	Cby	Cbz
1	3	2				10
2	4	7				11
3	14	10				6

But am unclear how to achieve this.

Any pointers gratefully received

TIA

Richard Pitman

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