Stata 15 help for _strip_labels

Title

[P] _strip_labels -- remove value labels from variables

Syntax

_strip_labels varlist

Description

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

Examples

. 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