我更新到SPSS 23
并且无法使案例控制匹配工作。带代码:
GET
FILE='\\Rmc-data1\infection-diseases\יעקב\Acinetobacter TMP-SMX\RESP-5.sAV'.
DATASET NAME DataSet1 WINDOW=FRONT.
FUZZY BY=AGE CharlsonScore Department CultureSource SUPPLIERID=ID NEWDEMANDERIDVARS=MatchID
GROUP=RESP FUZZ=5 1 0 0 EXACTPRIORITY=FALSE
MATCHGROUPVAR=MGV
/OPTIONS SAMPLEWITHREPLACEMENT=FALSE MINIMIZEMEMORY=TRUE SHUFFLE=FALSE.
我得到:
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "C:\Documents and Settings\All Users\Application Data\IBM\SPSS\Statistics\23\extensions\FUZZY.py", line 256, in Run
processcmd(oobj, args, casecontrol, vardict=spssaux.VariableDict())
File "C:\PROGRA~1\IBM\SPSS\STATIS~1\23\Python\Lib\site-packages\extension.py", line 398, in processcmd
msg = ",".join([unicodeit(item, myenc) for item in msg])
File "C:\PROGRA~1\IBM\SPSS\STATIS~1\23\Python\Lib\site-packages\extension.py", line 414, in unicodeit
return unicode(str(value), myenc)
File "C:\Program Files\IBM\SPSS\Statistics\23\Python\lib\encodings\cp1255.py", line 15, in decode
return codecs.charmap_decode(input,errors,decoding_table)
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9c in position 28: character maps to <undefined>
我知道 unicode 错误可能与 python 编码有关(例如 UTF-8 而不是 cp1255),但我不知道如何在 SPSS 环境中更改编码。有任何想法吗?