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
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
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
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 ---------------------------------------------------------------------------------------
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
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