Statalist


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

st: RE: dummy table


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: dummy table
Date   Sun, 22 Feb 2009 18:18:58 -0000

Whether wanna or want to, -tabm- from -tab_chi- on SSC will do this, if
seeing a table is what is implied. 

Nick 
n.j.cox@durham.ac.uk 

jota.be@web.de

I wanna get from

id	dum1	dum2	dum3	dum4
1	1	0	0	0
1	0	1	0	0
1	0	0	0	1
2	0	1	0	0
2	0	0	1	0
3	1	0	0	0
3	0	1	0	0
3	0	0	1	0
3	0	0	0	1
4	0	1	0	0
5	1	0	0	0
5	0	0	1	0

to 

id	dum1	dum2	dum3	dum4
1	1	1	0	1
2	0	1	1	0
3	1	1	1	1
4	0	1	0	0
5	1	0	1	0



*
*   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   |   What's new   |   Site index