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: Reshape from wide to long


From   Lars Folkestad <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Reshape from wide to long
Date   Mon, 18 Nov 2013 20:35:23 +0000

Hello

I want to a data set of repeated measurments. I want to reshape the data from wide to long seeing i want to show individual data change over time in a graph I have 2 measurments. 

Each case have a patient number and a id - both unik identifiers. 

The first five variables are there only once: id var0a var0b var0c var0d

When i write:
.reshape long varA1 varB1 varC1 varA2 varB2 varC2, i(PatNo) j(visit)

Stata gives out an error saying no variables a# b# was found. 

What am i doing wrong?

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