Stata 15 help for _strip_labels


[P] _strip_labels -- remove value labels from variables


_strip_labels varlist


_strip_labels is a programmer's tool that strips the value labels off the variables in varlist.


. sysuse auto, clear

. _strip_labels rep78 foreign

. sreturn list

macros: s(varlist) : "foreign" s(labellist) : "origin"

. d foreign

storage display value variable name type format label variable label ------------------------------------------------------------ foreign byte %8.0g Car type

Stored results

_strip_labels stores the following in s():

Macros: s(varlist) list of variables whose value labels were removed s(labellist) the associated value label identifiers

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