我是 SPSS 新手,我正在尝试为空单元格生成平均值(基本上通过用户给出的平均答案填写缺失的信息),我无法让我的示例代码工作(或很好地理解示例)。
COMPUTE QOL_puutt = Nmiss(ass, bass, grass, gas).
这部分我明白
Do repeat A = ass1 ass2 ass3. If ((Missing (A)) & QOL_puutt <= 4) A
= RND(Mean (ass1, ass2, ass3)). End repeat.
这里出了点问题。我知道 ass1,ass2,ass3 是指单元格(第 3 列)???以下是错误代码
Error # 4285 in column 15. Text: ass1 Incorrect variable name: either the name is more than 64 characters, or it is not defined by a previous command. Execution of this command stops.
Error # 4285 in column 15. Text: ass2 Incorrect variable name: either the name is more than 64 characters, or it is not defined by a previous command. Execution of this command stops.
Error # 4285 in column 15. Text: ass3 Incorrect variable name: either the name is more than 64 characters, or it is not defined by a previous command. Execution of this command stops