我是SPSS菜鸟,请教个小问题。我的数据库里面有3个变量(A, B C)为分类变量,0和1赋值,现在我想根据这三个变量产生一个新变量(D)。赋值条件就是if A=1 B=1 C=1 then D=1。
这怎么设置啊。谢谢各位高手
|
楼主: andrew2008
|
3501
1
[问答] SPSS新变量生成问题 |
|
学前班 50%
-
|
回帖推荐hplcdadong 发表于2楼 查看完整内容 The following is one of the methods:
Go to the syntax window, type the following,
compute D=0.
if (A=1 or B=1 or C=1) D=1.
exec.
Select the above syntax, then click the "run" button in the syntax window, you'll get your results.
Good luck!
本帖被以下文库推荐
| ||
|
|
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


