Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: alt to inlist?

From   "Danielle H. Ferry" <>
Subject   st: alt to inlist?
Date   Mon, 23 Jan 2006 17:01:18 -0500

Hi all,
Is there something like inlist which does not require that all arguments
exist? I would like to keep observations where varname = a or b or c or d or
... But  it could be that varname never takes the value of d. Another issue is
that my list of arguments is v. long (~145), so a simple or statement is not
possible. I found a stata faq that suggested using inlist, but this doesn't
like it when one of the arguments in the list doesn't exist, and my varname is
a string, so I'd have to write many of these inlist statements (b/c the limit
is 10). 
Danielle H Ferry

National Bureau of Economic Research <>

*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index