我正在研究急诊室患者的流行病学学位。我有一个 SPSS 数据集,其中包含 46 个变量(列)和 19228 名患者(行),这些患者由患者编号定义。为了优化数据,我正在尝试使用我之前的另一位学生创建的现有语法。 语法中显示缺失值的一行是:
MISSING VALUES ontslagDatum ('NULL').
EXECUTE.
(顺便说一句,ontslagDatum 是荷兰语的放电日期)
如果我这样做,我会得到:
>Error # 1137 in column 30. Text: NULL
>A field to be read under the DATE format is invalid. The field must contain
>day, month, and year separated by spaces, dashes, slashes, decimal points, or
>commas. Note that American style dates (month/day/year) can be read under the
>ADATE format. The result has been set to the system-missing value.
>Execution of this command stops.
现在我不明白这一点有几个原因,但我正在寻找缺失值的大部分变量在第 7 列中,那么为什么是第 30 列?第30列中的变量是二进制顺便说一句,也没有患者编号1137。那么1137和30表示什么,我不明白。
首先,我手动查看了第 1137 行的患者,出院日期没有丢失,格式与其他患者相同,我还查看了该患者第 30 列中的变量,但它是一个正确的二进制值。接下来,我对第 7 列和第 30 列中的变量进行了缺失值分析(从“分析”选项卡)。第 30 列的 MV 为 0,第 7 列的 MV 为 6,但它没有告诉我它们在哪里。 数字 1137 真的让我很困惑,我想也许每个单元格都是从左上角到右上角编号的,所以为了弄清楚#1137 是哪个单元格,我将 1137 除以 46(列数)= 24.7,所以第 25 行。并找出列 46*24= 1104, 1137-1104= 第 33 列,但该变量也是二进制的并且具有二进制值。 接下来我将语法更改为:
MISSING VALUES ontslagDatum (' ').
EXECUTE.
为此我得到了:
>Error # 4811 in column 47. Text: geboorteDatum
>String and numeric variables must be listed separately on the MISSING VALUES
>command.
>Execution of this command stops.
>Error # 4806 in column 30. Text: NULL
>The value list on the MISSING VALUES command was not closed with a right
>parenthesis.
>Execution of this command stops.
>Error # 701 in column 30. Text: NULL
>An undefined variable name, or a scratch or system variable was specified in a
>variable list which accepts only standard variables. Check spelling and
>verify the existence of this variable.
>Error # 4816. Command name: MISSING VALUES
>The variable list on the MISSING VALUES command was incorrect.
>Error # 4810 in column 34. Text: )
>The parenthesized list of missing values was omitted.
>Error # 702 in column 34. Text: )
>Unrecognized text was found where a variable list was expected.
>Error # 4816. Command name: MISSING VALUES
>The variable list on the MISSING VALUES command was incorrect.
>Error # 4810 in column 1024. Text: (End of Command)
>The parenthesized list of missing values was omitted.
同样,我只有 46 列,这些列号是怎么回事?查找缺失值的正确语法是什么?我有点恐慌,因为它只是第一个语法文件中的第三个命令,我想至少还有 5 个命令。