[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Transformations
Agreed in this particular case. First,
there is no need to create a new variable.
Second, the -inlist()- syntax is neat and
But in much more complicated cases, -eqany()-'s
ability to expand a numlist makes it easier to
use, even where -inrange()- is also a competitor.
> indeed. much neater.
> > Instead of the egen eqany() command, a better (one line)
> approach would be
> > to use the inlist function.
> > replace var1=1 if inlist(var2,1,3)
* For searches and help try: