Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: reshape of data


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: reshape of data
Date   Thu, 13 Dec 2012 09:57:14 +0000

. help reshape

tells you how. It's a -reshape long-.

Nick

On Thu, Dec 13, 2012 at 9:32 AM, Prakash Singh <prakashbhu@gmail.com> wrote:

> I have state level data for two years in two separate files and would
> like to reshape these files so that I can merge it with third file.
>
>
> the structure of the first two file is
>
> var state1 state2 state3....state30
> x      x1      x2       x3         x30
> y       y1      y2       y3         y30
> z       z1      z2       z3         z30
>
>
> the third data file is panel data structure.
>
> I would like to reshape first two file so that I can merge it with third one.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index