Differences between revisions 2 and 3
Revision 2 as of 2023-06-08 00:23:34
Size: 488
Comment:
Revision 3 as of 2023-06-08 00:23:43
Size: 492
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Stata supports the following logical structures for programming. Stata supports the following '''logic structures''' for programming.

Stata Logic

Stata supports the following logic structures for programming.


Operators


Conditional Processing


By

The by command prefix causes a command to be repeated within groups.

A common usecase of the by structure is for identifying duplciate cases.

sort foo bar baz
by foo bar baz: generate byte duplicate = cond(_N==1, 0, _n)


CategoryRicottone

Stata/Logic (last edited 2023-06-10 13:23:25 by DominicRicottone)