聚合数据/在SPSS中创建新变量 [英] Aggregate Data/ Create a New Variable in SPSS

查看:392
本文介绍了聚合数据/在SPSS中创建新变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在这个论坛和其他地方查看了汇总数据问题-但是我没有看到一个对我有帮助的答案,但是对于我来说这可能是个未知数。对不起。我有大量的原始数据测试结果,我想将某些分数汇总为一个平均分数。我可以通过在 compute> transform 中创建一个新变量来做到这一点,但是我不能通过手动添加1 + 2 + 3来为330+做到这一点。我的问题是:我如何才能以一种快速,智能的方式聚合成百上千的分数并计算出新的平均分数作为新变量呢?例如,我有339个针对50位参与者的延迟度量。我想将一个整体延迟得分计算为新变量。谢谢!我渴望方向。

I have looked at the aggregate data questions on this forum and elsewhere - but I don't quite see an answer that helps me but that may be non-understanding on my behalf.I apologize. I have a huge amount of raw data test findings and I want to aggregate certain scores into one mean score. I can do this by creating a new variable in compute > transform but I cannot do this for 330+ by adding it 1 + 2 + 3 all by hand. My question is: How can I aggregate hundreds of scores and calculate a new mean score as a new variable in a quick and intelligent fashion that so far eludes me? For example, I have 339 latency measures for 50 participants. I want to calculate ONE overall latency score as a new variable. Thanks! I am desperate for direction.

推荐答案

如果文件中的变量是连续的,则可以使用 SUM 使用 TO 命令以简单的语法指定变量。

If your variables are contiguous in the file you can use the SUM command using TO to specify the variables in simple syntax.

COMPUTE SumX = SUM(X1 to X330).

这篇关于聚合数据/在SPSS中创建新变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆