|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: data management
From
"Simon Oertel" <[email protected]>
To
<[email protected]>
Subject
st: data management
Date
Wed, 25 Apr 2007 12:00:29 +0200
Dear Stata Users,
I have another data management question and I hope on the same helpful
and great reply than the last time (thanks again to Carole and Nick).
I have a dataset with the following structure:
ID TimeA
1 10
1 10
1 12
2 8
2 8
3 19
3 21
3 86
3 7
4 10
5 18
6 56
6 56
...
And I would like to format the dataset into the following structure:
ID Time1 Time2 Time3
Time4
1 10 10 12
2 8 8
3 19 21 86
7
4 10
5 18
6 56 56
...
In words, the values witch are summarized under the label TimeA should
be summarized within a row in the new data structure as long as they
have the same ID. Further each ID-time should get its own column.
I hope you might be able to help me. I really appreciate for any
suggestions.
Simon
*
* 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 |