【发布时间】:2013-10-10 20:21:17
【问题描述】:
所以,我使用 SPSS 的时间不长,我需要帮助创建一个使用其他两个变量的变量。
我有一个调查,每个人的“家庭人数”变量和“与户主的关系”的另一个变量(户主=1,配偶=2,孩子=3等)。 我想通过每个家庭与户主的关系来创建一个“家庭类型”的变量。
所以,类似:
If in the household there's only the head, then is 1
If there's the head, spouse and/or children, then is 2
If it's head plus any other type of relative, it's 3.
例如:
家庭编号 - 关系
1 - 1
1 - 2
1 - 3
在家庭“1”中有一个户主(1),一个配偶(2)和一个孩子(3),所以它是一个“家庭类型”2。
我不知道用于执行此操作的命令是 SPPS。谁能帮帮我?
【问题讨论】: