Is a Stata or user command available to display a list of all the value labels in a data set by variable.
For example, the following two commands list the variable names and the value labels in the data set:
.de
digital label1
animal label2
astronomy label3
label list
label1:
0 No
1 Yes
label2:
1 Dogs
2 Cats
3 Birds
label3:
1 Earth
2: Sun
3 Moon
The hypothetical command would display:
.command
digital
0 No
1 Yes
animal
1 Dogs
2 Cats
3 Birds
astronomy
1 Earth
2 Sun
3 Moon
For example, the following two commands list the variable names and the value labels in the data set:
.de
digital label1
animal label2
astronomy label3
label list
label1:
0 No
1 Yes
label2:
1 Dogs
2 Cats
3 Birds
label3:
1 Earth
2: Sun
3 Moon
The hypothetical command would display:
.command
digital
0 No
1 Yes
animal
1 Dogs
2 Cats
3 Birds
astronomy
1 Earth
2 Sun
3 Moon
Comment