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