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.
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
Contact StataCorp
Contact service@stata-journal.com
if you have questions about the Stata Journal.
© Copyright 2001–2013 StataCorp LP. Terms of use. Privacy policy.
|