【问题标题】:SPSS LOOP with VECTOR(index) gives spss-error 4023带有矢量(索引)的 SPSS LOOP 给出了 spss 错误 4023
【发布时间】:2021-10-25 15:15:05
【问题描述】:

我有以下 LOOP 语法:

 VECTOR tb= tb1 TO tb16 / X(16).
 EXECUTE.
 loop #i = 1 to 5.
 if (tb(#i) > 0) X(#i) = tb(#i).
 end loop.
 exe.

SPSS 告诉我:

 >Error # 4023 in column 5.  Text: tb 
 >An expression contains a string of characters followed by a left parenthesis, 
 >indicating that the string of characters is a function or vector name, but the 
 >characters do not match any existing function or vector.  Check the spelling. 
 >Execution of this command stops.

请帮忙。

【问题讨论】:

    标签: loops vector indexing spss


    【解决方案1】:

    在向量定义后删除EXECUTE.。这将从内存中删除 tb 向量。 tb 存储在内存中,直到第一个 EXECUTE.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-15
      • 2014-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-26
      • 1970-01-01
      相关资源
      最近更新 更多