Equivalent function of R's "%in%" for Stata -
is there equivalent function of "%in%" r stata?
as mentioned, it's hard tell need question. inlist()
might work, or might not depending on setting.
i find stata's macro lists
functions invaluable. store list in macro (local or global) , suite of useful commands available:
local list b c d d e local search c local search_in_list : list search in list di `search_in_list'
these can calculated on fly:
if `: list search in list' { actions if true }
Comments
Post a Comment