Statalist


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

st: dummy table - follow up


From   John Bunge <[email protected]>
To   [email protected]
Subject   st: dummy table - follow up
Date   Sat, 21 Feb 2009 04:17:04 +0100

Dear all,


now i would like to modify

id	a	b	d1	d2	d3	d4
1	1	3	1	0	0	0
1	2	15	0	1	0	0
1	2	40	0	0	1	0
2	1	35	0	0	1	0
2	2	120	0	0	0	1
3	3	10	0	1	0	0
3	1	55	0	0	1	0
3	1	130	0	0	0	1
4	4	2	1	0	0	0
4	1	38	0	0	1	0


to

id	d1x	d2x	d3x	d4x	ad1	ad2	ad3	ad4	bd1	bd2	bd3	bd4
1	1	1	1	0	1	2	3	.	3	15	40	.
2	0	0	1	1	.	.	1	2	.	.	35	120
3	0	1	1	1	.	3	1	1	.	10	55	130
4	1	0	1	0	4	.	1	.	2	.	38	.


Thanks to some comments over this list I know how to create d1x - d4x. The additional stuff I am not sure how to do is ad1 - bd4. 




____________________________________________________________________
Psssst! Schon vom neuen WEB.DE MultiMessenger gehört? 
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123


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