2016-02-12 74 views
0

我有一個名爲A的調用變量,其標籤爲'絕對是','是','中性','不','絕對不是'。我只想選擇變量A的值爲yes的數據。然後我只想使用這些數據並比較一些序數變量。 所以,我怎麼能只分離與價值yes的數據變量ASPSS序數據

+1

查看'select if'命令。 – mirirai

回答

0

像這樣的東西應該做的伎倆:

USE ALL. *removes any filters you have in place. 
COMPUTE filter_$=(A = 'yes'). *creates a filter variable. 
VARIABLE LABELS filter_$ "A = 'yes' (FILTER)". *labels it. 
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'. *labels the values. 
FORMATS filter_$ (f1.0). *formats the filter variable. 
FILTER BY filter_$. *this is the uses the filter variable you just created. 
EXECUTE. 

您也可以指向並點擊自己的方式數據在答案 - >選擇個案。選擇「如果滿足條件」按鈕並從那裏進行選擇。