Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: string to numeric format


From   Calchas Calchas <calchas@live.co.uk>
To   <statalist@hsphsun2.harvard.edu>
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index