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]

st: RE: Reshaping data


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: Reshaping data
Date   Fri, 4 Feb 2011 13:05:33 +0000

Assuming say -regionid- -var1980- ... -var2009- this is 

reshape long var , i(regionid) j(year) 

This is one of the basic kinds of -reshape- in the help. What explanation did you miss? 

Nick 
[email protected] 

DE SOUZA Eric

I have a table in Excel (which, of course, I can convert to csv format and -insheet- into Stata). The table contains one variable. Each row corresponds to a region and each column to a year. Is there a way of converting the data into panel (long) format in Stata ?

I've hunted around and experimented but without success.

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