A frequent problem in data management is that datasets may not arrive in the best structure for many analyses, so that it may be necessary to restructure the data in some way. The particular case of multiple response data is discussed at length, with special attention to different possible structures; the generation of new variables holding the data in different form; valuable inbuilt string and egen functions; using foreach and forvalues to loop over lists; and the use of the reshape command. Tabulations and graphics for such data are also reviewed briefly.
CoxN. J.2002a. Speaking Stata: How to move step by: step. Stata Journal2(1): 86–102.
2.
CoxN. J.2002b. Speaking Stata: How to face lists with fortitude. Stata Journal2(2): 202–222.
3.
CoxN. J.2002c. Speaking Stata: On getting functions to do the work. Stata Journal2(4): 411–427.
4.
CoxN. J., and WeesieJ.2001. dm88: Renaming variables, multiply and systematically. Stata Technical Bulletin60: 4–6. In Stata Technical Bulletin Reprints, vol. 10, 41–44. College Station, TX: Stata Press.
5.
SasieniP.1995. sg36: Tabulating the counts of multiple categorical variables. Stata Technical Bulletin25: 15–17. In Stata Technical Bulletin Reprints, vol. 5, 93–96. College Station, TX: Stata Press.