Transcription of Title stata.com generate — Create or change …
{{id}} {{{paragraph}}}
Create or change contents of variableSyntaxMenuDescriptionOptionsRema rks and examplesMethods and formulasReferencesAlso seeSyntaxCreate new variablegenerate[type]newvar[:lblname]=e xp[if][in]Replace contents of existing variablereplaceoldvar=exp[if][in][, nopromote]Specify default storage type assigned to new variablesset type{float|double}[, permanently]wheretypeis one ofbyte|int|long|float|double|str|str1|st r2|..| for an explanation ofstr. For the other types, see[U] 12 allowed withgenerateandreplace; see [D] > Create or change data> Create new variablereplaceData> Create or change data> change contents of variableDescriptiongeneratecreates a new variable .
Title stata.com generate — Create or change contents of variable SyntaxMenuDescriptionOptions Remarks and examplesMethods and formulasReferencesAlso see Syntax Create new variable
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}