Inlist2 and its help file can be downloaded from the SSC repository by running the command: ssc install inlist2 . (version 1.1)
Feedback and bugs reports are greatly appreciated.
Inlist2 generates a dummy equal 1 if varname is equal to the arguments in values().
Inlist2 provides a faster way to link multiple "|" operators, similarly to inlist, by creating a dummy variable named inlist2 to be used in successive steps. Inlist2's string values
do not require quotation marks (e.g. in case of spaces within the string) so they are faster to write, also, inlist2 does not have a 10 arguments limit for strings or a 250 arguments
limit for reals. Inlist2 automatically distinguishes if the variable is a real or a string, but does not allow for commas in strings. Inlist2 does not give error massages if the
variable does not have one of the values in the list, but one can check if the replacement is working correctly by looking at the output. Feedback is greatly appreciated.