Stata 15 help for _restore_labels

Title

[P] _restore_labels -- restore value labels to variables

Syntax

_restore_labels varlist , labels(lblnamelist)

Description

_restore_labels attaches the value label identifiers to the variables in varlist.

Option

labels(lblnameslist) specifies the list of value label identifiers. The number of identifiers in lblnamelist must equal the number of variable in varlist.

Examples

. sysuse auto . _strip_labels rep78 foreign . local vlist `s(varlist)' . local llist `s(labellist)' . some work with the unlabeled values . _restore_labels `vlist', labels(`llist')


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index