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 .
generate— Create or change contents of variable 3 When we use replace, we are informed of the number of actual changes made to the dataset. You can explicitly specify the storage type of the new variable being created by putting the type,
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}
Types of Variables, Variable, Types, Types of Variables Binary variable, Variables, SPSS Step-by-Step Tutorial, SPSS Step-by-Step Variable, Binary variables, GAMS Introduction, Local average treatment, Binary, Variable Reduction for Modeling Using, Variable Reduction for Modeling using PROC, Preparing Data for Analysis Using Microsoft Excel, Siemens Simatic S7 Manuals and Guides