1
我想合併不同的SPSS文件。付費表示不同的人。這些文件還包含指示測量時刻的變量ID。因此ID = 1意味着數據是測量結果1(ID = 2;測量2等)。但是,並非所有數據文件都包含相同的測量時刻。通過合併SPSS中的文件合併添加個案並添加變量
我已經閱讀下面的文章,但是這並沒有完全回答我的問題: SPSS - merging files with duplicate cases of ID variable and new cases/variables
實例數據文件
數據文件1:
PAID ID X1 X2 X3 X4
1 1 3 4 4 5
2 1 3 4 5 6
3 1 3 4 4 6
4 1 . . . .
數據文件2:
PAID ID X5 X6 X7
1 1 1 1 2
1 2 1 2 1
2 1 1 2 2
2 2 2 2 2
3 1 1 1 1
3 2 1 . .
4 1 1 1 1
4 2 2 2 2
我想要th e以下結果:
PAID ID X1 X2 X3 X4 X5 X6 X7
1 1 3 4 4 5 1 1 2
1 2 . . . . 1 2 1
2 1 3 4 5 6 1 2 2
2 2 . . . . 2 2 2
3 1 3 4 4 6 1 1 1
3 2 . . . . 1 . .
4 1 . . . . 1 1 1
4 2 . . . . 2 2 2
我想我必須使用函數add case和add variables的一些組合。但是,這在SPSS中可能嗎?如果是這樣,我該怎麼做?
在此先感謝!
非常感謝你。這對我有很大的幫助。 –