help for labellacking

Report numeric variables with values lacking value labels

Syntax

labellacking
[varlist]
[if] [in]
[
,
all
missing
reportnovaluelabels
]

Description

labellacking reports on numeric variables in varlist
listing observed integer values lacking assigned value labels.
varlist is optional and defaults to all numeric variables. String
variables are always ignored even if specified directly or indirectly.
The effect of specifying if and/or in is to restrict
reporting to the observations implied. Note that non-integers and system
missing values . are always ignored, as they cannot be labelled.

Options

all reports "(none)" whenever all observed integer
values have been assigned value labels, so none are lacking value
labels. The default is to report nothing about any such variables.

missing extends reporting to observed extended missing
values (any of .a ... .z) not assigned value labels. The default is to
ignore all such missing values.

reportnovaluelabels specifies that numeric variables
lacking any value labels be reported explicitly. The default is to
ignore them. It is unlikely that you will want to use this option, but
it is provided for completeness. See also ds (or findname
if installed).

Examples

. sysuse auto, clear

. label define rep78 1 abysmal 2 adequate

. label val rep78 rep78

. labellacking price-foreign

. labellacking price-foreign, all

. labellacking price-foreign, all report

. labellacking rep78, missing

. replace rep78 = .a if rep78 == .

. labellacking rep78, missing

Acknowledgment

Chen Samulsion and Daniel Klein helped identify a problem when the
first character of a value label was a multi-byte character.
Shen Yang pointed out that the command failed when a set of value labels
has been associated with a variable, but those value labels have not yet
been defined. Such problems are now trapped and reported.

Authors

Nicholas J. Cox, Durham University, U.K.

n.j.cox@durham.ac.uk

Robert Picard

picard@netbox.com

Also see

Online: [D] label; [D] codebook;
[D] labelbook; [D] ds; findname (if installed).