help ifin


ifin -- Generate a local containing an if statement to select multiple values


ifin values, variable(varlist) [and] [omitif]


ifin takes the given parameters and defines a local s(ifin) containing a string to select values of that variable.

values should be a space-separated list.

variable should be a varlist containing only one variable.

and if specified, inserts & instead of | into the resulting local.

omitif if specified, the resulting local will not begin with "if" .

quote if specified, the resulting local will quote the values in the if stateme > nt.


. ifin high low, variable(yhat) quote . keep `s(ifin)'