Differences between revisions 2 and 3
Revision 2 as of 2023-06-08 00:26:50
Size: 239
Comment:
Revision 3 as of 2023-06-08 01:05:56
Size: 346
Comment:
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
----



== See also ==

[[https://www.stata.com/manuals/dgenerate.pdf|Stata manual for generate]]

Stata Generate

The generate command creates a new variable


Usage

generate foo = 1
generate bar = "2" if foo==1
generate byte baz = 3


See also

Stata manual for generate


CategoryRicottone

Stata/Generate (last edited 2023-06-08 01:05:56 by DominicRicottone)