PSPPでクロス集計
DATA LIST /Q1 1 Q2 2 Q3 3 Q4 4 Q5 5.
VARIABLE LABELS Q1 'Q01' Q2 'q02' Q3 'q03' Q4 'Sex' Q5 'Age'.
VALUE LABELS Q4 1 'M' 2 'F'.
BEGIN DATA.
12121
23123
12332
12123
21211
END DATA.
LIST.
FREQUENCIES VARIABLES= ALL.
CROSSTABS TABLES=Q1 BY Q4 /CELLS= COUNT ROW COLUMN /STATISTICS= CHISQ PHI.
上記のコマンドファイルのPSPPでの実行結果
クロス統計表で行パーセント、列パーセントが表示されていない。なぜか不明。
CROSSTABSの解説(http://www.gnu.org/software/pspp/manual/pspp.html#CROSSTABS)
(以下引用)
Please note: Currently the implementation of CROSSTABS has the followings bugs:
Pearson's R (but not Spearman) is off a little.
T values for Spearman's R and Pearson's R are wrong.
Significance of symmetric and directional measures is not calculated.
Asymmetric ASEs and T values for lambda are wrong.
ASE of Goodman and Kruskal's tau is not calculated.
ASE of symmetric somers' d is wrong.
Approximate T of uncertainty coefficient is wrong.
Fixes for any of these deficiencies would be welcomed.
実行されないコマンドのリスト
http://www.gnu.org/software/pspp/manual/pspp.html#Not-Implemented