Aggregate Data/ Create a New Variable in SPSS

牧云@^-^@ 提交于 2019-12-11 19:38:45

问题


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.


回答1:


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).


来源:https://stackoverflow.com/questions/20672461/aggregate-data-create-a-new-variable-in-spss

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!