_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
FrontPage › SAS襴

Contents

1 蠏 蟆:univariate
2 x2-蟆: 覈覈 覲碁り 蟯 覿襯 蟆
3 x2-蟆: 蠏碁9螳 襴曙 蟆
4 x2-蟆:螳譴豺襯 螻ろ 襴曙 蟆
5 x2-蟆:譯殊
6 蠏 蟲螳 豢: 蠏覿襯 螳
7 t-Test : 蠏 谿願 螳?


1 蠏 蟆:univariate #

data a1;
	input hei @@;
	cards;
		164 161 158 170 161 159 158 169 152 160
;
proc univariate normal;
	var hei;
run;

蟆郁骸
                                                      UNIVARIATE 襦
                                                          覲:  hei

                                                             襯

                                    N                   10    螳譴                     10
                                    蠏             161.2    蟯豸′                 1612
                                    譴ク谿    5.34997404    覿               28.6222222
                                            0.29147701    豌               0.23211453
                                    螻燕          260112     螻燕             257.6
                                    覲螻    3.31884246    蠏 譴れ姶    1.69181034


                                                        蠍磯蓋 糾 豸°

                                            豺豸°                  覲伎検

                                        蠏     161.2000     譴ク谿         5.34997
                                        譴螳螳   160.5000     覿            28.62222
                                        豕觜螳   158.0000     覯            18.00000
                                                              覿 覯      6.00000

                            NOTE: The mode displayed is the smallest of 2 modes with a count of 2.


                                                     豺覈 蟆: Mu0=0

                                       蟆            --糾---    -------p-螳-------

                                       ろ語 t    t  95.28255    Pr >  |t|   <.0001
                                       覿            M         5    Pr >= |M|   0.0020
                                       覿        S      27.5    Pr >= |S|   0.0020


                                                         蠏 蟆

                                  蟆                  ----糾----    -------p-螳-------

                                  Shapiro-Wilk          W      0.93473    Pr < W      0.4960
                                  Kolmogorov-Smirnov    D      0.21491    Pr > D     >0.1500
                                  Cramer-von Mises      W-Sq  0.066153    Pr > W-Sq  >0.2500
                                  Anderson-Darling      A-Sq  0.385437    Pr > A-Sq  >0.2500


                                                        覿( 5)

                                                     覿         豢螳

                                                     100% 豕螳     170.0
                                                      99%            170.0
                                                      95%            170.0
                                                      90%            169.5
                                                      75% Q3         164.0
                                                      50% 譴     160.5
                                                      25% Q1         158.0
                                                      10%            155.0
                                                       5%            152.0
                                                       1%            152.0
                                                       0% 豕螳     152.0



                                                          SAS ろ                         22:09 Thursday, March 22, 2001  13

                                                      UNIVARIATE 襦
                                                          覲:  hei

                                                           蠏 蟯豸′

                                              --螳覿-        ---郁覿--

                                                螳   蟯豸′          螳   蟯豸′

                                               152        9         161        2
                                               158        7         161        5
                                               158        3         164        1
                                               159        6         169        8
                                               160       10         170        4



  • "Pr < W" 螳 0.4960襦 0.05覲企 朱襦 蠏覿螳 磯ジる 螳れ 蠍郁.

2 x2-蟆: 覈覈 覲碁り 蟯 覿襯 蟆 #

  • 一危
    • 蠏 焔? 1. 2.
    • 蠏螳 讀蠍磯 豬覩 ? 1.ろ豸 2.螳 3. 4.
  • 襴曙 蟆( 蟯煙 襦..)

3 x2-蟆: 蠏碁9螳 襴曙 蟆 #

data a1;
	input sex $ hei @@;
	cards;
		F 156 F 170 F 157 F 167 F 169 F 147
		M 170 M 175 M 180 M 173 M 157 M 179 
;
proc freq;
	tables sex*hei/chisq expected;
run;

蟆郁骸
                                                         FREQ 襦

                                                       sex * hei 蟲谿

         sex         hei

                觜|
            蠍磯觜|
              覦焔|
            覦焔|
         豺朱 覦焔|     147|     156|     157|     167|     169|     170|     173|     175|     179|     180|   豐
         -----------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
         F          |      1 |      1 |      1 |      1 |      1 |      1 |      0 |      0 |      0 |      0 |      6
                    |    0.5 |    0.5 |      1 |    0.5 |    0.5 |      1 |    0.5 |    0.5 |    0.5 |    0.5 |
                    |   8.33 |   8.33 |   8.33 |   8.33 |   8.33 |   8.33 |   0.00 |   0.00 |   0.00 |   0.00 |  50.00
                    |  16.67 |  16.67 |  16.67 |  16.67 |  16.67 |  16.67 |   0.00 |   0.00 |   0.00 |   0.00 |
                    | 100.00 | 100.00 |  50.00 | 100.00 | 100.00 |  50.00 |   0.00 |   0.00 |   0.00 |   0.00 |
         -----------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
         M          |      0 |      0 |      1 |      0 |      0 |      1 |      1 |      1 |      1 |      1 |      6
                    |    0.5 |    0.5 |      1 |    0.5 |    0.5 |      1 |    0.5 |    0.5 |    0.5 |    0.5 |
                    |   0.00 |   0.00 |   8.33 |   0.00 |   0.00 |   8.33 |   8.33 |   8.33 |   8.33 |   8.33 |  50.00
                    |   0.00 |   0.00 |  16.67 |   0.00 |   0.00 |  16.67 |  16.67 |  16.67 |  16.67 |  16.67 |
                    |   0.00 |   0.00 |  50.00 |   0.00 |   0.00 |  50.00 | 100.00 | 100.00 | 100.00 | 100.00 |
         -----------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
         豐              1        1        2        1        1        2        1        1        1        1       12
                        8.33     8.33    16.67     8.33     8.33    16.67     8.33     8.33     8.33     8.33   100.00


                                                sex * hei 企  糾

                                  糾                                  螳    襯螳
                                  ----------------------------------------------------------
                                  豺伎伎螻                           9      8.0000    0.5341
                                  磯觜 豺伎伎螻                    9     11.0904    0.2696
                                  Mantel-Haenszel 豺伎伎螻           1      3.6709    0.0554
                                   螻                                 0.8165
                                  覿 螻                                 0.6325
                                  襾語 V                                0.8165

                                  蟆所:  100%螳 5覲企  蠍磯觜襯 螳讌螻 給.
                                              豺伎伎螻 蟆 覦襯伎   給.

                                                        覲 蠍 = 12


  • x2 螳 8.0000覲企 襯 0.5341企.
  • p螳 0.05覲企 覩襦 "覲 る 谿願 "朱 螳れ 蠍郁讌 覈詩.

4 x2-蟆:螳譴豺襯 螻ろ 襴曙 蟆 #

data a1;
	input sex $ hobby count @@;
	cards;
		F 1 21 F 2 41 F 3 29 F 4 25 F 5 6 F 6 4
		M 1 16 M 2 12 M 3 24 M 4 12 M 5 3 M 6 4
;
proc freq;
	tables sex*hobby/chisq;
	weight count;
run;

蟆郁骸
                                                         FREQ 襦

                                                      sex * hobby 蟲谿

                           sex         hobby

                                  觜|
                                覦焔|
                              覦焔|
                           豺朱 覦焔|       1|       2|       3|       4|       5|       6|   豐
                           -----------+--------+--------+--------+--------+--------+--------+
                           F          |     21 |     41 |     29 |     25 |      6 |      4 |    126
                                      |  10.66 |  20.81 |  14.72 |  12.69 |   3.05 |   2.03 |  63.96
                                      |  16.67 |  32.54 |  23.02 |  19.84 |   4.76 |   3.17 |
                                      |  56.76 |  77.36 |  54.72 |  67.57 |  66.67 |  50.00 |
                           -----------+--------+--------+--------+--------+--------+--------+
                           M          |     16 |     12 |     24 |     12 |      3 |      4 |     71
                                      |   8.12 |   6.09 |  12.18 |   6.09 |   1.52 |   2.03 |  36.04
                                      |  22.54 |  16.90 |  33.80 |  16.90 |   4.23 |   5.63 |
                                      |  43.24 |  22.64 |  45.28 |  32.43 |  33.33 |  50.00 |
                           -----------+--------+--------+--------+--------+--------+--------+
                           豐             37       53       53       37        9        8      197
                                         18.78    26.90    26.90    18.78     4.57     4.06   100.00


                                               sex * hobby 企  糾

                                  糾                                  螳    襯螳
                                  ----------------------------------------------------------
                                  豺伎伎螻                           5      7.8385    0.1654
                                  磯觜 豺伎伎螻                    5      8.0481    0.1536
                                  Mantel-Haenszel 豺伎伎螻           1      0.1406    0.7077
                                   螻                                 0.1995
                                  覿 螻                                 0.1956
                                  襾語 V                                0.1995

                                                        覲 蠍 = 197
  • p螳 0.05覲企 覩襦 " 豬覩語 谿願 "朱 螳れ 蠍郁讌 覈詩.

5 x2-蟆:譯殊 #

  • 螳 CELL 觜螳 覓 朱 x2螳 覩瑚 蟆曙郁 襷. 企 觜螳 覈 Missing豌襴蟇磯 覈 豌襴.
  • 螳讌 語朱 覿る慨覃 る襯 覯 . 郁規 郁規 覈 襦 伎 . (: 蟆壱殊覿 豬覩語 襴曙朱 蟆郁骸螳 朱 螳螳 蟆壱殊覿 豬覩語 覿企慨覃 蟯 る 蟆磯 詞 . )

6 蠏 蟲螳 豢: 蠏覿襯 螳 #

れ れ 一危一 覲語企. 95% 襤郁規螳 蠏蟲螳 豢
data a1;
	input hei @@;
	cards;
		164 161 158 170 161 159 158 169 152 160

proc means mean std t prt lcl ucl;
	var hei;
run;


蟆郁骸
                                                      The MEANS Procedure

                                                        覿 覲 : hei

                                                                           蠏 95%    蠏 95%
                          蠏螳        譴ク谿       t 螳    Pr > |t|          襤壱          襤一
                    ---------------------------------------------------------------------------------------
                     161.2000000       5.3499740      95.28      <.0001       157.3728591       165.0271409
                    ---------------------------------------------------------------------------------------
  • 95% 襤郁規螳 る 157 ~ 165 企. 讀, 100覈 譴 95覈 る 覯 れ願.

t-Test 蟆郁骸..
PROC TTEST DATA=a1 H0=10 ;
	VAR hei ;
RUN ;

蟆郁骸
                                                      The TTEST Procedure

                                                          Statistics

                         Lower CL              Upper CL    Lower CL               Upper CL
    Variable        N        Mean      Mean        Mean     Std Dev    Std Dev     Std Dev    Std Err    Minimum    Maximum

    hei            10      157.37     161.2      165.03      3.6799       5.35       9.767     1.6918        152        170


                                                            T-Tests

                                            Variable      DF    t Value    Pr > |t|

                                            hei            9      89.37      <.0001
  • 95% 襤郁規螳 る 157.37 ~ 165.03

7 t-Test : 蠏 谿願 螳? #

DATA car;
	INPUT car@@ ;
	CARDS ;
		21.0 22.7 25.8 20.6 18.5 21.4 19.3 17.6 22.7 20.6
		17.9 18.3 24.7 23.3 24.3 21.5 20.0 19.8 22.9 19.9
	;
RUN ;

PROC TTEST DATA=car H0=20 ;
	VAR car ;
RUN ;

/* 
H0=20 旧 : 蠏覓願  蟆蠍一 覈蠏 螳
*/

蟆郁骸
                                      The TTEST Procedure

                                        Variable:  car

                  N        Mean     Std Dev     Std Err     Minimum     Maximum

                 20     21.1400      2.3383      0.5229     17.6000     25.8000

                    Mean       95% CL Mean        Std Dev      95% CL Std Dev

                 21.1400     20.0456  22.2344      2.3383      1.7783   3.4153

                                     DF    t Value    Pr > |t|

                                     19       2.18      0.0420

  • 95% 襤郁規螳
    • 蠏蟲螳: 20.0456 ~ 22.2344
    • 譴ク谿: 1.7783 ~ 3.4153
  • 蠏 譴れ姶: 0.5229
  • 0.0420 < 0.05 企襦, 蠏覓願れ 豈
蠍 蠍郁鍵..
企: : るジ讓曙 襦螻豺 企Ν 譯殊語. 襦螻豺
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:52

蟲 覈詩 讌襷 蟲 讌 蟆 . 蠏碁 讌ろ 襴れ 覓伎螻朱 覦蠖 給. 讌 蟆語願 れ 蠍一. 覈詞朱 覿讌 蟆 讌朱 蟇伎ろる 企 蟆 螳誤 給. 螳 一渚 讌 朱 螳 襦 覈旧 覲 螻 襷 給.