Command Reference : Operator and Function Reference : Indicator Functions
  
Indicator Functions
These functions produce indicators for whether each observation satisfies a specific condition:
 
Function
Description
@inlist(series, "list")
Creates a dummy variable equal to 1 for observations where series is equal to one of the values specified in list, and 0 otherwise. list should be a quoted, space delimited list of values. This function works on both numerical and alpha series.
@between(series, val1, val2)
Creates a dummy variable equal to 1 for observations where series is greater than or equal to val1 and less than or equal to val2.