Home  >>  Archives  >>  Volume 3 Number 1  >>  pr0008

The Stata Journal
Volume 3 Number 1: pp. 81-99



Subscribe to the Stata Journal
cover

Speaking Stata: On structure and shape: the case of multiple responses

Nicholas J. Cox
University of Durham, UK
n.j.cox@durham.ac.uk
Ulrich Kohler
Social Science Research Center
Berlin, Germany
kohler@wz-berlin.de
Abstract.   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.
Terms of use     View this article (PDF)

View all articles by these authors: Nicholas J. Cox, Ulrich Kohler

View all articles with these keywords: composite variables, concatenation, egen, foreach, forvalues, graphics, indicator variables, multiple responses, reshape, split, string functions, tabulations

Download citation: BibTeX  RIS

Download citation and abstract: BibTeX  RIS