【正文】
就是天平的意思 ),出現(xiàn)對話框之后點擊Weight cases,然后把 “ number”選入即可。 二維列聯(lián)表情況 加權(quán)之后,按照次序選 Analyze- Descriptive Statistics- Crosstabs。 在打開的對話框中,把 opinion和 ine分別選入Row(行)和 Column(列);至于哪個放入行或哪個放入列是沒有關(guān)系的。 如果要 Fisher精確檢驗則可以點 Exact,另外在Statistics中選擇 Chisquare,以得到 ?2檢驗結(jié)果。最后點擊 OK之后,就得到有關(guān) Pearson ?2統(tǒng)計量、似然比 ?2統(tǒng)計量以及 Fisher統(tǒng)計量的輸出了 (這里的 Sig就是 p值 )。 加權(quán): C h i S q u a r e T e s t s2 0 . 4 5 6a2 . 0 0 0 . 0 0 02 1 . 1 9 0 2 . 0 0 0 . 0 0 02 0 . 7 1 3 . 0 0 02 0 . 2 9 0b1 . 0 0 0 . 0 0 0 . 0 0 0 . 0 0 01 2 3P e a r s o n C h i S q u a r eL ik e li h o o d R a t ioF is h e r 39。 s E x a c t T e s tL in e a r b y L in e a rA s s o cia t io nN o f V a li d C a s e sV a lu e dfA s y m p . S ig .(2 s id e d )E x a c t S ig .(2 s id e d )E x a c t S ig .(1 s id e d )P o in tP r o b a b il it y0 c e ll s (. 0 % ) h a v e e x p e ct e d co u n t le s s t h a n 5 . T h e m in im u m e x p e c t e d c o u n t is 1 0 . 3 3 .a . T h e s t a n d a r d iz e d s t a t is t ic is 4 . 5 0 4 .b . 下面為 SPSS對于 下面二維列聯(lián)表 相關(guān)分析的輸出 o p i n i o n * i n c o m e C r o s s t a b u l a t i o nC o u n t7 15 19 4145 25 12 8252 40 31 1 2 301o p i n i o nT o t a l1 2 3i n c o m eT o t a l利用 crosstabs處理 三維列聯(lián)表 問題的 SPSS選項 利用 crosstabs處理 三維 列聯(lián)表 問題的輸出 i n c om e * o pi ni on * s e x C r os s t a bu l a t i onC o u n t2 25 277 15 229 7 1618 47 655 20 258 10 1810 5 1523 35 58123i n c o m eT o t a l123i n c o m eT o t a ls e x010 1o p i n i o nT o t a l利用 crosstabs處理 三維 列聯(lián)表 問題的輸出 C h i S q u a r e T e s t s1 2 . 2 5 2a2 . 0 0 2 . 0 0 21 2 . 9 9 3 2 . 0 0 2 . 0 0 31 2 . 3 4 0 . 0 0 21 2 . 0 6 4b1 . 0 0 1 . 0 0 0 . 0 0 0 . 0 0 0658 . 7 8 2c2 . 0 1 2 . 0 1 29 . 0 5 8 2 . 0 1 1 . 0 1 28 . 7 0 6 . 0 1 28 . 6 2 4d1 . 0 0 3 . 0 0 5 . 0 0 3 . 0 0 258P e a r s o n C h i S q u a r eL i k e l i h o o d R a t i oF i s h e r 39。s E x a c t T e s tL i n e a r b y L i n e a rA s s o c i a t i o nN o f V a l i d C a s e sP e a r s o n C h i S q u a r eL i k e l i h o o d R a t i oF i s h e r 39。s E x a c t T e s tL i n e a r b y L i n e a rA s s o c i a t i o nN o f V a l i d C a s e ss e x01V a l u e dfA s y m p . S i g .( 2 s i d e d )E x a c t S i g .( 2 s i d e d )E x a c t S i g .( 1 s i d e d )P o i n tP r o b a b i l i t y1 c e l l s ( 1 6 . 7 % ) h a v e e x p e c t e d c o u n t l e s s t h a n 5 . T h e m i n i m u m e x p e c t e d c o u n t i s 4 . 4 3 .a . T h e s t a n d a r d i z e d s t a t i s t i c i s 3 . 4 7 3 .b . 0 c e l l s ( . 0 % ) h a v e e x p e c t e d c o u n t l e s s t h a n 5 . T h e m i n i m u m e x p e c t e d c o u n t i s 5 . 9 5 .c . T h e s t a n d a r d i z e d s t a t i s t i c i s 2 . 9 3 7 .d . 利用 crosstabs處理 三維 列聯(lián)表 問題的輸出 1 2 3ine0510152025Countopinion01sex=01 2 3ine05101520Countopinion01sex=1高維列聯(lián)表和 (多項分布 )對數(shù)線性模型 ?前面例子 原始數(shù)據(jù)是個三維列聯(lián)表,對三維列聯(lián)表的檢驗也類似。 ?但高維列聯(lián)表在計算機(jī)軟件的選項