Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Reshape or other approach for multiple-response data


From   "Arnold Levinson" <[email protected]>
To   "Statalist" <[email protected]>
Subject   st: Reshape or other approach for multiple-response data
Date   Wed, 13 Apr 2005 11:54:57 -0600

Friends,
I have a long dataset with variables that allow multiple responses per
subject. So it looks like:

ID    var1    var2
1        3        5
1        2        .
2        3        4
2        .        5
etc.
Reshape doesn't like multiple responses for a single variable. What's the
most efficient way of reshaping to wide, with each variable becoming a
response-specific dummy, i.e., var1_1, var1_2, etc.
thx....arnold

Arnold H. Levinson, Ph.D.
Assistant Professor of Preventive Medicine & Biometrics
University of Colorado at Denver & Health Sciences Center
Associate Scientist
AMC Cancer Research Center
303.777-8801
[email protected]

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index