/* Lesson 27-1 */ /* File Name = les2701.sas 01/17/02 */ /* */ /* Original File Name = les1001.sas 06/21/01 */ /* Original File Name = les1002.sas 06/21/01 */ data gakusei; infile 'all01.prn'; input seibetsu $ height weight chest jitaku $ kodukai; proc print data=gakusei(obs=10); run; proc freq data=gakusei; tables seibetsu*jitaku/chisq; tables seibetsu*jitaku/chisq norow nocol nopercent; run; proc format; value clheight low-<150=' -149' 150-<160='150-159' 160-<170='160-169' 170-<180='170-179' 180-high='180- ' other ='missing'; run; proc freq data=gakusei; tables height*seibetsu/chisq norow nocol nopercent; format height clheight.; run;
SAS システム 2 19:15 Wednesday, January 16, 2002 TABLE OF SEIBETSU BY JITAKU SEIBETSU JITAKU Frequency| Percent | Row Pct | Col Pct |G |J | Total ---------+--------+--------+ F | 15 | 36 | 51 | 8.43 | 20.22 | 28.65 | 29.41 | 70.59 | | 24.19 | 31.03 | ---------+--------+--------+ M | 47 | 80 | 127 | 26.40 | 44.94 | 71.35 | 37.01 | 62.99 | | 75.81 | 68.97 | ---------+--------+--------+ Total 62 116 178 34.83 65.17 100.00 Frequency Missing = 27 SAS システム 5 19:15 Wednesday, January 16, 2002 STATISTICS FOR TABLE OF SEIBETSU BY JITAKU Statistic DF Value Prob ------------------------------------------------------ Chi-Square 1 0.925 0.336 Likelihood Ratio Chi-Square 1 0.941 0.332 Continuity Adj. Chi-Square 1 0.621 0.431 Mantel-Haenszel Chi-Square 1 0.920 0.338 Fisher's Exact Test (Left) 0.216 (Right) 0.873 (2-Tail) 0.387 Phi Coefficient -0.072 Contingency Coefficient 0.072 Cramer's V -0.072 Effective Sample Size = 178 Frequency Missing = 27 WARNING: 13% のデータが欠損です. SAS システム 7 19:15 Wednesday, January 16, 2002 TABLE OF SEIBETSU BY JITAKU SEIBETSU JITAKU Frequency|G |J | Total ---------+--------+--------+ F | 15 | 36 | 51 ---------+--------+--------+ M | 47 | 80 | 127 ---------+--------+--------+ Total 62 116 178 Frequency Missing = 27 SAS システム 8 19:15 Wednesday, January 16, 2002 STATISTICS FOR TABLE OF SEIBETSU BY JITAKU Statistic DF Value Prob ------------------------------------------------------ Chi-Square 1 0.925 0.336 Likelihood Ratio Chi-Square 1 0.941 0.332 Continuity Adj. Chi-Square 1 0.621 0.431 Mantel-Haenszel Chi-Square 1 0.920 0.338 Fisher's Exact Test (Left) 0.216 (Right) 0.873 (2-Tail) 0.387 Phi Coefficient -0.072 Contingency Coefficient 0.072 Cramer's V -0.072 Effective Sample Size = 178 Frequency Missing = 27 WARNING: 13% のデータが欠損です. SAS システム 10 19:15 Wednesday, January 16, 2002 TABLE OF HEIGHT BY SEIBETSU HEIGHT SEIBETSU Frequency|F |M | Total ---------+--------+--------+ -149 | 4 | 0 | 4 ---------+--------+--------+ 150-159 | 21 | 1 | 22 ---------+--------+--------+ 160-169 | 29 | 39 | 68 ---------+--------+--------+ 170-179 | 1 | 86 | 87 ---------+--------+--------+ 180- | 0 | 15 | 15 ---------+--------+--------+ Total 55 141 196 Frequency Missing = 9 SAS システム 12 19:15 Wednesday, January 16, 2002 STATISTICS FOR TABLE OF HEIGHT BY SEIBETSU Statistic DF Value Prob ------------------------------------------------------ Chi-Square 4 103.983 0.001 Likelihood Ratio Chi-Square 4 120.816 0.001 Mantel-Haenszel Chi-Square 1 93.076 0.001 Phi Coefficient 0.728 Contingency Coefficient 0.589 Cramer's V 0.728 Effective Sample Size = 196 Frequency Missing = 9 WARNING: 30% of the cells have expected counts less than 5. Chi-Square may not be a valid test.
なお、今まで利用していた私のメールアドレスは実は講義用のものであった。 今後、もし統計に関して何か疑問に出会い、連絡してみたいと思った時は、 以下のアドレスを使ってください。
皆さんの期待に応えられたか心配な部分もあるが、一年間ご苦労様でした。