通过添加行合并变量

问题描述 投票:1回答:1

我有不同的争议变量列,每一列代表一个类别。我想通过添加适当的行数将所有列合并为一个列,并使用spss或excel为每行的类别名称创建一个新列。

这是我现在的数据:enter image description here

这是我想要的:enter image description here

spss
1个回答
0
投票

这是一个简单的重组,像这样使用varstocases

varstocases make value  from A B C/index=category(value).
© www.soinside.com 2019 - 2024. All rights reserved.