Transcription of Syntax - Stata: Software for Statistics and Data Science
{{id}} {{{paragraph}}}
Manipulate labelsSyntaxMenuDescriptionOptionsRemark s and examplesStored resultsReferencesAlso seeSyntaxLabel datasetlabel data["label"]Label variablelabel variablevarname["label"]Define value labellabel definelblname #"label"[#"label"..][, add modify replace nofix]Assign value label to variableslabel valuesvarlist[lblname|.][, nofix]List names of value labelslabel dirList names and contents of value labelslabel list[lblname[ ]]Copy value labelslabel copylblname lblname[, replace]Drop value labelslabel drop{lblname[ ]|all}Save value labels in do-filelabel save[lblname[ ]]usingfilename[, replace]where#is an integer or an extended missing value (.a,.b,..,.z).12 label Manipulate labelsMenulabel dataData>Data utilities>Label utilities>Label datasetlabel variableData>Variables Managerlabel defineData>Variables Managerlabel valuesData>Variables Managerlabel listData>Data utilities>Label utilities>List value labelslabel copyData>Data utilities>Label utilities>Copy value labelslabel dropData>Variables Managerlabel saveData>Data utilities
Value labels are attached to variables by label values. label values attaches a value label to varlist. If . is specified instead of lblname, any existing value label is detached from that varlist. The value label, however, is not deleted. The syntax label
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}