

The PDF documentation for -reshape- is also silent on labels, while that for -collapse- says " collapse adds meaningful variable labels to the variables in this new dataset." I don't like Stata's version of a "meaningful" variable label. In all versions through 17, the word "label" is absent from both help files. This approach is consistent with -reshape-'s use of variable -characteristics- and global macros to store information on the -reshape- so that it can be reversed.īy the way, the help files for -reshape- and -collapse- could be improved by describing how these two commands deal with variable and value labels. Then the user would again run -retainlbl- after completing either -reshape- or -collapse- to restore the variable labels, or perhaps slightly modified versions of those labels. Code: view net describe retainlbl, from()I designed version 2.0 of -retainlbl- to be run on the variables prior to executing either -reshape- or -collapse-, which would store the variable labels with the variable names in global macros.
