Differences between revisions 1 and 2
Revision 1 as of 2023-06-08 00:26:39
Size: 229
Comment:
Revision 2 as of 2023-06-08 00:26:50
Size: 239
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
generate bar = "2" generate bar = "2" if foo==1

Stata Generate

The generate command creates a new variable


Usage

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


CategoryRicottone

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