lbl_list_no_var_lbl
Title
lbl_list_no_var_lbl - List variables without a variable label.
Syntax
lbl_list_no_var_lbl, [varlist(varlist)]
options | Description |
---|---|
varlist(varlist) | Restrict the scope of variables to consider |
Description
For small data sets, visual inspection can identify variables without a variable label. For larger data sets (or repeat encounters with data sets), it is better to have a tool variables, if any, that remain without a variable label.
This command does that. If any variables without variable labels are found, it lists them. If all variables have variable labels, it says so. That way, the user knows whether action is needed, and for which variables.
Options
varlist(varlist) restricts the scope of the search to the user-provided variable list. By default, the command searches for matches in all variables in memory. With varlist(), the scope of the search can be narrowed.
Examples
* create set of variables
gen var1 = .
gen var2 = .
gen var3 = .
gen var4 = .
* apply variable labels to only some variables
label variable var1 "Some label"
label variable var4 "Another label"
* list variables without variable labels globally
lbl_list_no_var_lbl
* list variables without a label in the varlist
lbl_list_no_var_lbl, varlist(var3 - var4)
Feedback, bug reports and contributions
Read more about the commands in this package at https://github.com/lsms-worldbank/labeller.
Please provide any feedback by opening an issue at https://github.com/lsms-worldbank/labeller/issues.
PRs with suggestions for improvements are also greatly appreciated.