[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Reshape or other approach for multiple-response data
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
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.
Arnold H. Levinson, Ph.D.
Assistant Professor of Preventive Medicine & Biometrics
University of Colorado at Denver & Health Sciences Center
AMC Cancer Research Center
* For searches and help try: