//建立新变量vv,其值:trunk只能为11或17,mpg可以从18-30间时为1,其他为0 gen vv=inlist(trunk,11,17)&inrange(mpg,18,30) //建立新变量vva,其值:trunk为11-17,mpg可以从18-30间时为1,其他为0 gen vva=inrange(trunk,11,17)&inrange(mpg,18,30)
标签:11,mpg,inrange,17,18,STATA,trunk,inlist From: https://www.cnblogs.com/xkdn/p/17177544.html