From | Roger Newson <[email protected]> |
To | [email protected] |
Subject | Re: st: Reshape or other approach for multiple-response data |
Date | Wed, 13 Apr 2005 20:39:34 +0100 |
At 18:54 13/04/2005, Arnold H. Levinson wrote:
I think the first step is to define a second variable, containing the response sequence of the observation within its ID. If Arnold typesFriends, 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.
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |