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]
RE: st: RE: string to numeric format
From
Calchas Calchas <[email protected]>
To
<[email protected]>
Subject
RE: st: RE: string to numeric format
Date
Sun, 7 Mar 2010 22:04:52 +0000
I have a data set of test results of many candidates in item level as follows:
Candidate1 item1a 3
Candidate1 item1b 1
Candidate1 item2a 0
Candidate1 item2b 3
.
.
.
Candidate1 item6b 2
Candidate2 item1a 1
Candidate2 item1b 2
Candidate2 item2a 3
Candidate2 item2b 2
.
.
.
Candidate2 item6b 3
Candidate3 item1a 4
...
I need to rearrange the data set into one candidate per row with their results:
1a 1b 2a 2b . . . . . 6
Candidate1 3 1 0 3 3
Candidate2 1 2 3 2 4
Candidate3 4 .... etc
How could I do that in the Stata data editor?
Also how could I change a column of numeric data to string data again? You 1st message wasn't clear. Many thanks.
Calchas
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/