Statalist


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

Re: st: dummy table


From   John Bunge <[email protected]>
To   [email protected]
Subject   Re: st: dummy table
Date   Sat, 21 Feb 2009 03:23:05 +0100

thanks but it does not what i want

i want

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

but what it gave me was

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







> -----Ursprüngliche Nachricht-----
> Von: "Wafa Hakim Orman" <[email protected]>
> Gesendet: 21.02.09 03:03:23
> An: [email protected]
> Betreff: Re: st: dummy table


> duplicates drop id, force
> 
> should do it.
> 
> Hope this helps,
> Wafa.
> 
> [email protected] wrote:
> > Dear all
> > 
> > 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
> > 
> > 
> > Does anyone have an idea?
> > 
> > Thanks!
> > _______________________________________________________________________
> > DSL zum Nulltarif + 20 Euro Extraprämie bei Online-Bestellung über die
> > DSL Freundschaftswerbung! http://dsl.web.de/?ac=OM.AD.AD008K15279B7069a
> > 
> > 
> > *
> > *   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/
> 
> -- 
> Wafa Hakim Orman
> Assistant Professor
> Department of Economics and Information Systems
> College of Business Administration
> University of Alabama in Huntsville
> 301 Sparkman Drive
> Huntsville, AL 35899
> (256) 824-5674
> *
> *   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/
> 


_______________________________________________________________________
Jetzt 1 Monat kostenlos! WEB.DE FreeDSL - Telefonanschluss + DSL
für nur 17,95 EURO/mtl.!* http://dsl.web.de/?ac=OM.AD.AD008K15039B7069a


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