将SPSS中的多个答案更改为一个答案

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

我错误地将“你的性别是什么”问题作为Qualtrics中的多项选择而不是“选择一个”。

我将数据导出到SPSS,这使我无法进行相关等。 是否有一种简单的方法可以将答案放回到一个变量中,其中1 =男性2 =女性3 =其他?

而不是3个不同的变量 1名男性 1女 1其他

spss qualtrics
1个回答
1
投票

说你的变量是malefemaleother,你可以使用这个:

if male=1 sex=1. 
if female=1 sex=2. 
if other=1 sex=3.
value labels sex
   1  'male'
   2  'female'   
   3  'other'.

现在,如果受访者选择了多个可能的答案,您将不得不决定会发生什么。最简单的解决方案可能是:

if sum(male, female, other)>1 sex=$sysmis.

另一方面,如果你想尽可能少地丢失数据,你可以这样做:

if male=1 and other=1 sex=1.
if female=1 and other=1 sex=2.
if male=1 and female=1 sex=$sysmis.
© www.soinside.com 2019 - 2024. All rights reserved.