在 SPSS 中转换 ASCII
我正在尝试使用 Wilkinson 测试比较几种统计软件。为了像第一个问题一样读取 ASCII 文件,我尝试将测试保存为具有 ANSI 编码的六个单独的 .txt 文件。我还尝试将测试保存为 .nfo 文件。软件 (SPSS) 应该将文件编码为 ABCDE。在SPSS中,当我插入数据并使用空格分隔符时,文件->读取数据它只返回 1 2 3 4 5 “ONE”。有谁知道我做错了什么? 谢谢!
I am trying to use the Wilkinson test to compare several statistical software's. To read the ASCII files as in the first question I tried to save the tests as six separate .txt files with ANSI encoding. I also tried saving the tests as a .nfo file. The software (SPSS) should encode the file to ABCDE. In SPSS when I inserted the data and used a space delimiter than did File-> Read Data it just returns 1 2 3 4 5 "ONE". Does anyone know what I am doing wrong?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在这个例子中,我使用了 V18,只需通过 GUI,我就可以导入文件。下面是 GUI 生成的逐字内容(唯一的区别是我选择使用空格和逗号作为分隔符。)
我不太确定为什么它在 V6 之后生成了无聊的变量,但除此之外似乎一切都很好。它将
5D-0
解释为字符串,但它应该将其解释为什么呢?您也只能选择一个文本限定符,尽管在此示例中这并不妨碍导入字符串。下面是一个屏幕截图。For this example I used V18, and just going through the GUI I was able to import the file. Below is verbatim what the GUI produced (the only difference is I chose to use both spaces and comma's as delimiters.)
I'm not quite sure why it produced the frivolous variables after V6, but otherwise it appears all is well. It interpreted
5D-0
as a string, but what is it supposed to interpret it as? You also can only choose one text qualifier, although in this example that does not hinder the strings being imported. Below is a screenshot.我使用 Andy 的 SPSS 代码作为源。不幸的是我没有可用的 SPSS 来测试它。希望它有效。
不知道如何将 " 和 ' 定义为 QUALIFIER。
我尝试使用 PSPP 执行相同的任务(因为我没有可用的 SPSS)。以下代码运行良好:
得到以下结果:
I am using Andy's SPSS code as the source. Unfortunately I do not have SPSS available to test it. Hope it works.
Do not know how to define both " and ' as QUALIFIER.
I tried to do the same task with PSPP (as I do not have SPSS available). The following code works nicely:
Got the following result: