Equivalent function of R's “%in%” for Stata

前端 未结 3 1407
遥遥无期
遥遥无期 2021-01-19 20:08

Is there an equivalent function of \"%in%\" from R for Stata?

3条回答
  •  旧时难觅i
    2021-01-19 20:35

    Stata does not offer the same flexible tool, but inlist will cover the basic operation that you might be looking for, as in count if inlist(country,"FR","US","DE").

提交回复
热议问题