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 question
From
Nikolaos Pandis <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: reshape question
Date
Sat, 8 Jun 2013 01:29:56 -0700 (PDT)
Hi to all
I would be grateful if you could possibly help me reshape to long the following wide data structure:
I have 28 patients (patient_id)
I have measured the distance between 6 pairs of anatomical points in those 28 patients on serial radiographs (5 radiographs per patient):
cda_c1 to cda_5
cggn_c1 to cggn_5
spame_c1 to spame_5
nspa_c1 to nspa_5
ara_c1 to ara_c5
argn_c1 to argn_c5
cda, cggn, spame, nspa, ara, argn indicate the linear measurement
c1 to c5 indicate the 5 time points.
I can reshape each variable (measurement) on its own:
for example: reshape long cda_c, i(patient_id) j(time)
but how could I reshape all at once in the same datafile?
Thank you,
Nick
*
* 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/