多条件判断命令inlist
、inrange
,适用于重污染企业定义等
keep if inlist(state, "AL", "AK", "AZ")
*等价于:
keep if state=="AL" | state=="AK" | state=="AZ"
keep if inrange(distance, 10, 91)
*等价于:
keep if distance>=10 & distance<=91
标签:distance,判断,10,AL,keep,state,Stata,条件,inrange
From: https://www.cnblogs.com/xkdn/p/17053041.html