Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: RE: rearranging cross-section to longitudinal cross-section


From   "Kristen Shorette" <[email protected]>
To   [email protected]
Subject   Re: st: RE: rearranging cross-section to longitudinal cross-section
Date   Sun, 13 Nov 2011 11:56:54 -0800

That was it - thanks Steve.


> Hi Kristen,
>
> I think that you need to use
>
> reshape long
>
> here.
>
> Steve
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Kristen
> Shorette
> Sent: 13 November 2011 19:19
> To: [email protected]
> Subject: st: rearranging cross-section to longitudinal cross-section
>
> Hi All,
>
> I have a data set that's arranged as:
>
>        year1  year2 year3...
> case1
> case2
> case3...
>
> and I'd like to rearrange it to look like:
>
> case1 year1
> case1 year2
> case1 year3
> case2 year1...
>
> Is there a way to automatically do this in Stata? (I'm on version 10)
>
> Thanks,
> Kristen
>
> *
> *   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/
>
>


-- 
Department of Sociology
University of California, Irvine

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index