Statalist


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

Re: st: AW: copy each observation in multiple rows


From   Shehzad Ali <[email protected]>
To   [email protected]
Subject   Re: st: AW: copy each observation in multiple rows
Date   Mon, 15 Feb 2010 06:37:22 -0800 (PST)

Thanks, Martin and Eric. Very helpful!

Shehzad




----- Original Message ----
> From: Martin Weiss <[email protected]>
> To: [email protected]
> Sent: Mon, February 15, 2010 1:52:09 PM
> Subject: st: AW: copy each observation in multiple rows
> 
> 
> <> 
> 
> 
> 
> *************
> expand 5
> *************
> 
> 
> 
> HTH
> Martin
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von Shehzad Ali
> Gesendet: Montag, 15. Februar 2010 14:50
> An: Stata List
> Betreff: st: copy each observation in multiple rows
> 
> Hi listers,
> 
> Is it possible to create multiple rows for each observation and copy the
> data for each id in the new rows?
> 
> My data currently looks like this:
> 
> id   sex   disability   education   school
> 1     1         0               12             A
> 2     0         1                8              B
> 
> I want to make the data look like this:
> 
> id   sex   disability   education   school
> 1     1         0               12             A
> 1     1         0               12             A
> 1     1         0               12             A
> 1     1         0               12             A
> 1     1         0               12             A
> 2     0         1                8              B
> 
> 
>       
> 
> *
> *   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/
> 
> *
> *   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/



      

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