gigh 发表于 2018-4-15 18:41 
會錯誤表示你的變數為字串(string) 非數字
需多加一步驟處理,把字串變數改為數字變數
destring State ,r ...
destring State ,replace
State: contains nonnumeric characters; no replace
. label define State1 1"国有企业" 0"非国有企业"
. label values State State1
may not label strings
还是不行诶,是因为我的State是中文字符的原因么?