Title: SAS Statistical Analysis System ? ? ? www.statistics.mentors.cn
1SASStatistical Analysis System? ?
?www.statistics.mentors.cn
2???????
- 1.??SAS???????
- 2.??SAS???????
- 3.??SAS???????
- 4.????DATA??????,?????????????
- 5.????PROC???????????????????
- 6.??????????
- 7.????SAS???????????????????????????????
3??? SAS??
- SAS????????????,??????????????????????????????
??,?????????????????????????????????,SAS??????????
?????? - SAS???1966????North Carolina????????,1976?????
SAS???????,????SAS???????????????????1985????SAS/P
C(6.02)????SAS??????,????????,???????,1998???6.12?
,????9.1????
4- ??SAS??????????,??SAS???????????????????,?????????
??????????????SAS????????????60??????????????????1
20???????30000???????SAS??,??????????SAS??????????
????????????????????????,?????????
51 SAS?????
- SAS??
- SAS??????????????????????????????????
??????SAS??????????????,??????????SAS?????????????
????????Base SAS??,???????????SAS/STAT?????????SA
S/GRAPH?????????SAS/IML?????????????SAS/OR?????
???????????SAS/ETS???? - SAS?????
- ????SAS???????????????????????????????????????
6- ???????????????????SAS??(????????????)????,??SAS??
,???SAS????????????????????????????????? - SAS????????????????
- SAS???????????????????DATA???????????PROC???
??????????SAS??????????????????????????????,??????
????????????? - ?????????
- SAS????????????(??????????)?????????????????
????????????????????????(?????)?
72 Base SAS????
- Base SAS???SAS??????????????????????,?????????????
??Base SAS????????,????????????????????SAS???Base
SAS???????????? - ???????
- ???????
- SAS????????????,???????SAS???????????????????
?????????,?SAS??????
8- ?????????
- SAS??????????SAS??????????????????????????,???
????????????????????DO/END?IF-THEN/ELSE?????,????
??????????Base SAS??????????????,?????????????????
? - ????
- ?????????????????????????????Base
SAS????????????????????????????,????????????,?????
??????????????? - ? ?????????
- Base SAS???????????SAS????????????,??
9- ??????????,?????????????????????????????????
- ?????????????????
- ????????
- SAS??????????????????????????????
- ????????????
- Base SAS?????????????????????????SAS?????????????,
????????????????????,??????????? - SAS???????????????????????????,???????????????????
????
103 SAS?????
- SAS??????????????????
- ????????PROGRAM EDITOR??(?????,???PGM)?LOG??(???
????)?OUTPUT(???)???????????????
11- PGM
- ??
- ??SAS??
- ?????????PGM???????,??SAS??
- ??,?????????????
OUTPUT ?? ??????SAS?????????SAS???????????????OUT
PUT??????
- LOG
- ??
- ??SAS??,?????
- ?????????SAS??
- ??????????
- DATA?????????
12- ??????
- ??????????,????????????????????????????
???????????????????????????
13??? SAS????
- ??????????,SAS???????????????????????????????????
??SAS??????????????????????SAS?????????SAS??? - 1 SAS??
- ? ?SAS?????
- ?????????
- ???10?9???3?????????????,????10???????????
?
14???10?9???3???????
15- Data zhili
- input name x1 x2 x3
- cards
- Zhang 14 13 28
- Li 10 14 15
- Wang 11 12 19
- Zhao 7 7 7
- Wu 13 12 24
- Liu 19 14 22
- Zhong 20 16 26
- Yang 9 10 14
- Zeng 9 8 25
- He 9 9 12
-
- Proc means datazhili
- var x1 x2 x3
- run
- ??????,????
- data, input, cards, proc, var,
- run????
- zhili?????
- name, x1, x2, x3????
- means????
- data?means??????
- ??????
- ??,????SAS?????
- SAS????????SAS???????????????????????
16- ? ?????
- 1.SAS???
- ?????????????????????SAS?????????SAS??
?????? - 2.SAS?
- SAS??????SAS??????,?????SAS??????????
- SAS?????1?8???(?????)??
- ??????????????,?????????????????
- SAS?????????????(??_at_??)
- SAS?????????????????,??????????????????????(?_N_?_
ERROR_?)? - 3.????????
- ??????
17- ???( )???? ???? ????????????_at_?????????????
.???? - ?????
- ???????????/????
- ??????????lt????gt??????lt??????gt??
- ? ?????
- SAS????????
- KEYWORD Parameter item item item
options - ??? ?? ??1 ??2 ??3 ???
- ?????????????????
- ????????????????,???????? input x y z
18- ??input ????,??????????????????????x?y?z
????,??????????? - ???????????
- ??1 ??2 ??3 ????????????,?????????????????
????? - ??proc means datastore maxdec3
- ??proc???????,???????????means????,???????????d
ata?maxdec????????,????????????? - 2 SAS??
- ???SAS??????SAS???SAS???????????DATA??PROC???????
???SAS?????????DATA???SAS???
19- ??PROC??SAS?????????????????????SAS??????DATA????P
ROC??????DATA??PROC???????????DTAT????PROC???? - ? ?DATA STEP(???)
- DATA????????????SAS?????????????????????????DATA?
?DATA????,????????SAS???????DATA??????? - DATA??????SAS???,????????
- INPUT???SAS???????????
- CARDS????????????
- ??(???)?????????
- ??
20- Data zhili
- input name x1 x2 x3
- cards
- Zhang 14 13 28
- Li 10 14 15
- Wang 11 12 19
- Zhao 7 7 7
- Wu 13 12 24
- Liu 19 14 22
- Zhong 20 16 26
- Yang 9 10 14
- Zeng 9 8 25
- He 9 9 12
21- ? ?PROC STEP(???)
- PROC???SAS????????????????????PROC??PROC??
??,?????????SAS??? - ??
- Proc means datazhili
- var x1 x2 x3
- ???????SAS?????run???????
- ?????
- Proc means datazhili
- var x1 x2 x3
- Run
22- 3 ??SAS??
- ? ?SAS?????
- Data zhili
- input name x1 x2 x3
- cards
- Zhang 14 13 28
- Li 10 14 15
- Wang 11 12 19
- Zhao 7 7 7
- Wu 13 12 24
- Liu 19 14 22
- Zhong 20 16 26
- Yang 9 10 14
- Zeng 9 8 25
- He 9 9 12
23- ???PROC???SAS???????????name????????????????????
????????????????????????? - Proc sort
- by name
- proc print
- title 9?????????
- proc means
- run
- ????DATA????PROC???????SAS???
- ????????????
24(No Transcript)
25(No Transcript)
26- ?? SAS???????
- 1. ????
- SAS???????????????
- ??SAS??????????
- ???????????,??????????????
- ??????????????????
- ??????(???,??)?????????,?
- totala10 ?
- total a 10
- ????
- SAS????????????????????????
27- 2. ??(???)
- SAS??????????,???
- /????/
- ???????????,????????????????
- proc sort /??????/
- ??????????
- ??????,???//?????????????????,??????????
28- 3.?????
- ?????????????????????????input???,name????
?????,???x1,x2,x3? - ???SAS???,???????????,SAS??????????????
- ??x1,x2,x3...xn????????,???x1-xn
- ??x1,a,b,x2,x3,d?????????,???x1--d
- ???SAS??,_numeric_ ????????
- _character_ ????????
- _all_ ???????
29?????????,????????????? no x1 age x2 x3
x4 x5 ???VAR??????SAS???????-?--??
VAR x1 x2 x3 x4 x5
VAR x1-x5
???????x1 x2 x3 x4 x5?
VAR x1--x5
VAR x1 age x2 x3 x4 x5
?????????x1?x5??? ????x1 age x2 x3 x4 x5?
30- 4 SAS????????
- ?? ?????
- ????PGM?????????,???????????SAS??????LOG??
????????????,??????????????????????????????????
????????? - ?? SAS?????
- ????????,DATA???????zhili?SAS????????PROC
?????????OUTPUT??(???????)?
315 SAS???
- ????????????????????????,??????????????
????????????????????????? - ???????????????????????????
- X1 3 LOG(X) P/A100
AGElt100 - 1-EXP(N/(N-1)) ABC STATENC
- ?DATA??,????????,??????????????????????,??
?????????????
32- ??SAS??
- SAS??????????,????????,???????????????
????????? - SAS???????????????????????????????????????????
???????,????????????????
33- 1. ????
- ???????????SAS????????????????????????
??????????????,???E????? - 1 -5 1.23
- 1.2E23 0.1 0.5E-10
- ?E????,?2E4,??? 2104,??20000?
- ????????(.)???
34- 2.????
- ?????????????1200??????.??,???????
- if nameTOM then do
- TOM?????????
- ?????????????
35- 3???????
- (1)???
- 01Jan2005d
- (2)???
- 123021t
- (3)?????
- 01Jan2005123021dt
- SAS???0??1960?1?1?0?,?????SAS???????????????
- ?1960?1?3??SAS?????2
36?? SAS?? ???????????????????
37- SAS????????,??????????
- SAS????????????
- ??????????????????????(??),??????(,),????????
10E-307?10E308? - ?????????????????????????DATA????SAS??????????
???????,??????????????SAS?????????????1200?????
38- ?? SAS??
- SAS???????,??????????????????SAS?????
???????????????? - ?????????????????????????????
- Y -25 -COS(A)
- ????????????NOT??????????
- ?????????????????,??6lt8
??????????????????????????????(????????)?
39- 1.????
- ??????????????,??
- ?? ?? / ?? ??
- ?? - ?????????????????,??????????
- 2.????
- ????????????????,????????,??????1(?)??????,
??????0(?)??????? - (EQ) ?? (NE) ???
- gt(GT) ?? lt(LT) ??
- gt(GE) ???? lt(LE) ????
40- ?????AltB???A???4,B???3,????AltB???0(?)?A???5
,B???9,????AltB???1(?)?A?B????47,??????,????1? -
41- 3.????
- ?????????(Boolean)??,???????????????????????
? - (AND) ? (OR) ? (NOT) ?
- 4.????
- ??????,SAS????????
- ??1???????????
- ??2?????????????
42- ????????????(???????)
- ?(not)
- ?/
- ?-?
- lt?lt?? ?gt?gt? gt?lt
- (and)
- (or)
- ??3??????????,??????????
- ????
- 1) ????,??????6326(32)
- 2) ?????????????,??????and?????
- 12ltagelt20 ??? ( 12ltage) and (agelt20)
43- 6 SAS??
- ? ?SAS?????
- 1.SAS?????
- SAS????????,??0?????????????????SA
S??????????????????,???????,???????????????,??????
??,?????????????????SAS?????? - functionname(argument,...)
- ??
- INT(cash)
- SUM(cash,credit)
- MIN(SUM(cash,credit),1000)
44- 2. SAS?????SAS????17???,????????????????????????
???????????????????????????? - ?? SAS????????
- 1. SAS??????
- 1) ?????????????????????????????????????????????
- sqrt(2500)
- min(sum(of x1-x10),y)
45- 2) ??????
- ??????????(?DATE()),
- ??????????,
- ?????????????????
- ??????????2000?????
- ????????????,??????????????
- ?LOG(xy)
- ????,????xy,????????LOG???xy????
46- 3) ??????????,??????????,?????????????,??????????
? - functionname(OF variable1-variable...)
- functionname(OF variable variable
...) - functionname(variable, variable, ...)
- ??
- sum(of x1-x5)
- sum(of x1 x2 x3 x4 x5)
- sum(x1,x2,x3,x4,x5)
- ?????
47- 2. ?????
- ???????????(???),???????????,??????????
,??????????????????,????????? ????????,??????????
8???,??????????200????
48- ?.??????
- SAS??????????
- ????
- abs()????
- mod(var1,var2)?var1??var2????
- sqrt()?????
- int()????,??????
- round(var,??)????????
- ???0.1,.01,
- log()???e??????
- log10()???10??????
49- ??????
- max()???? min()????
- mean()???? std()????
- sum()??
- ????
- normal()????????????
- rannor()??????????????
- ????
- substr()???????????????????
- trim()??????????
- ??????
- year()?????????
- month()?????????
- day()????????
- mdy(?,?,?)???????????
- ????????
- SAS Online Help---gtSAS
Language---gtSAS Functions
50??? ????????????
- 1??????????
- ?????PPT14
- ????
- 1??????
- 2??????
- ?????(???)
- 1???????
- ?????????,????SAS?????????????????????????,???
???????????????? - 2???????
51- 1)?????WORK(??????)
- 2)?????
- (1)????SASUSER?SASHELP
- (2)????LIBNAME ?? ??
- ??????????,SAS???????
- ????????
- 1??????
- WORK .?????????
- ?Work . Zhili?Zhili
- 2??????
- ??????.????
- ?Sasuser . Zhili
-
522 ??????
- ??????
- 1??DATA?
- ?INPUT?CARDS??????
- ?3.1 Data Test
- Input Name Chinese English Math
- Cards
- Cheng 85 98 86
- Zhang 95 88 91
- Li 88 92 83
-
- Run
- ??????
-
53- Data Test
- Input name Chinese English Math _at__at_
- Cards
- Cheng 85 98 86 Zhang 95 88 91
- Li 88 92 83
-
- Run
54- ????????????,???Cards4??,
- ????????????????
- ?3.2
- Data Test
- Input Name Chinese English Math
- Cards4
- Cheng 85 98 86
- Zhang 95 88 91
- Li 88 92 83
-
- Run
55- 2??Viewtable
- 3??Assist??
- (1)????
- ????????,????n
- ????,?8.??,?8.2????????????????
- (2)??????????
- ???????????8?????8?,??length??
- ?3.3Data Case
- length y 20/length????input????/
- input x y _at__at_
- cards
- 25 586966832556
-
- run
- (3)?????????????,??????????,??????????
56- 4??Insight??
- ?? Insight
- ??SolutionAnalysisInteractive
- ?????,?????
- ??????????????????????????,??????
- ?????????????
- ???INFILE????????????
- ?3.4Data Test
- Infile ??????
- Input Name Chinese English Math
- Run
- ????????????,??????????????
- ????????
- File Import Data
57SAS???????
- 1?????
- ???
- 2???????????????????
- ?3.5Data Birthday
- Input name 1-4 year 12-15 month
16-17 day 18-19 - Cards
- Liu 335223197802050015
- Chen 523632198206250011
- Li 225366197610020008
-
- Run
- ?????????????????????,?????????
58- 3?????
- ?3.6data sjinput a 5. b 3.1
- cards
- www333
- www3333
- www33333
- run
- 3.1??b??3???,???????5.??????a?5???,5?????????
?,??????????????? - ??????????????
59- 4.Format????????????????
- ????format???????(8.x)
- ?3.7
- data sjgs
- input a _at__at_
- format a 8.2
- cards
- 2.335 6.3 12 53.1552
-
- run
- proc print
- run
- ??????????,???????,????????(1)?input????????????
?????,?????????????,???????????????(2)????????? -
603 ?????????
- Viewtable?Insight?
- 1?????(?)?Viewtable(???????)?Insight??
- 2??????(?)?Insight?????,?
?????(?)?Insight???????/? ?/????Viewtable??/???.
- 3???????Insight??/??/??/????????????
- ????????????
61??? ??SAS???????
- ????????
- ??SET??
- ?4.1Data Test1
- Set Test
- run
- ???????????
- 1????????????????(??) ???????
- ??where???if??
62- ???????TEST???Chinese????90?????????
- ?4.2Data Test1
- Set Test
- Where chinesegt90
- Run
- ?
- Data Test1
- Set Test
- If chinesegt90
- Run
63- Where???if???????
- where???????????????,?if???????????????(???4.6)
- 2????????????????????
- ??Keep???Drop??
- ?4.3Data Test2
- Set Test
- Keep Chinese English
- Run
- ?
-
64- Data Test2
- Set Test
- Drop name Math
- Run
- ????????
- (?)????????
- 1???????Set??
- ?4.4Data Score
- Input name Chinese English Math _at__at_
- Cards
- Liu 80 85 83 Wang 91 87 95 Mao 81 86 92
-
- Run
65- ?????Test?Score??????????
- Data Testscore
- Set Test Score
- Run
- 2?????
- ??Merge??
- ?4.5Data Test3
- Set Test
- Keep Math
- Run
66- ?????Test2?Test3????
- Data Test23
- Merge Test2 Test3
- Run
- (?)?????????
- ?4.6data a data b
- input x y _at__at_ input x z _at__at_
- cards cards
- 1 15 3 78 5 90 1 69 2 89 4 98
-
- run run
-
67- Data ab
- Set a b
- Run
- Data ba
- Merge a b
- Run
68- data whereab data ifab
- merge a b merge a b
- where xgt2 if xgt2
- run run
- ?where,?merge ?merge,?if
- ????????,??????????????
- Whereab ifab
- x y z x y z
- 1 4 78 98 1 4 90 98
- 2 5 90
69- ?????????????
- 1?Rename??
- ?4.7data test4
- set test
- rename math(??)mathematics(??)
- run
70- 2?????
- ????variable expression
- ????????????????? (variable)
- ?4.8data test5
- set test
- totalchineseenglishmath
- run
- 3?Output???Delete??
- (1)OUTPUT??
- ?????SAS?????????????SAS?????
- ??????output lt????1gt lt????Ngt
- SAS??????????????output???????????,????DATA?????
????????????????????,????DATA????????
71- ?4.9
- data class
- input name chinese maths english _at__at_
- scorechineseoutput
- scoremathsoutput
- scoreenglishoutput
- Cards
- a 82 78 69 b 90 78 89 c 79 86 98
-
- run
- ??output?????class?????
72- (2)DELETE??
- DELETE????SAS???????????,?????????????????SAS???
?,?????DATA??????????? - ??????DELETE
- ?4.10 data class1
- input sex chinese maths english _at__at_
- if sex'm' then delete
- cards
- m 82 78 69 f 90 78 89 m 79 86 98
-
- run
73- ??Data???????
- (?)IF??(????)
- ?DATA??,SAS?????????????????????????????????????
???????????????????,?????DATA???????? - ?SAS?????????IF????IF?????IF?????IF?????THEN??,??
???IF???????????? - 1.??IF??
- ??IF??????THEN??,??????IF?????????????????IF??,?
THEN??????,??????ELSE?????????????????ELSE??,?SAS?
??????IF????????? - ??????IF condition THEN statement
- ltELSE statement gt
74- ?4.11
- data class2
- input sex chinese maths english _at__at_
- totalchinesemathsenglish
- if sexm then
- if totalgt240 then output
- else put totallt240
- else output
- /?PUT??????????
- ???????/
- Cards
- m 82 78 69 f 90 78 89 m 79 86 98 m 76 56 80
- f 72 76 81 f 69 78 91 m 92 71 85
- run
75- ?????DATA????SAS???class??????IF??????IF?????????
????,????????????,??????????240???????240???,?????
??????SAS?????????240??,?????????????SAS????,???L
OG???????????240?????????????,??????????,????else?
?,?????,??LOG????????? - OBS SEX CHINESE MATHS ENGLISH
TOTAL - 1 f 90 78 89 257
- 2 m 79 86 98 263
- 3 f 72 76 81 229
- 4 f 69 78 91 238
- 5 m 92 71 85
248
76- 2.??IF??
- ??IF?????THEN??,?????IF????????????
- ??????IF expression
- ??4.6
- (?)SelectWhen??
- ????????
- ??1
- Select (???)
- When (??1)????A
- When (??2)????B
-
- Otherwise ????Z
- End
77- ??2
- Select
- When (??1) ????A
- When (??2) ????B
-
- Otherwise ????Z
- End
- ???????14?
78- (?)Do??(????)
- ??DO?????????DO?????DO???DO WHILE???DO
UNTIL?? - 1.??DO??
- ??DO??????IF-THEN-ELSE???,?????IF??????????(????
?) ,?IF??????,???????????SAS???
79- ?4.12data class3
- input sex chinese maths english _at__at_
- if sexm then /then?????????/
- Do
- totalchinesemathsenglish
- n1 /?? n1?????,??????
- ??????/
- End
- avesum(chinese,maths,english)/3
- Cards
- m 82 78 69 f 90 78 89 m 79 86 98 m 76 56 80
- f 72 76 81 f 69 78 91 m 92 71 85
-
- Run
80- ??????????SAS??????????????????CLASS?SAS???????
????????????,????,??????DO?????,?????IF??????ave
sum(chinesemathsenglish)/3???????????IF????DO?,
????????????,???????????,??N?????????? - OBS SEX CHINESE MATHS ENGLISH
TOTAL N AVE - 1 m 82 78 69 229
1 76.3333 - 2 f 90 78 89 .
1 85.6667 - 3 m 79 86 98 263
2 87.6667 - 4 m 76 56 80 212
3 70.6667 - 5 f 72 76 81 .
3 76.3333 - 6 f 69 78 91 .
3 79.3333 - 7 m 92 71 85 248
4 82.6667
81- 2???DO??
- ??DO????DOEND?????????????,??????
- DO index-variable spacification-1lt,...spacific
ation-ngt - ??sas??
- End
- ????DO???????????
- (1)index-variable????,????????????????
- (2)spacification???,????????,???????????????
- start ltto stopgtltBY incrementgt
- start???????????,??to stop?BY
increment?????,?????????????????DO???start????,???
????????????????to stop?BY increment?,start???????
?????
82-
- to stop??????????,???????????????,???????????????
?start?stop?????,?????DO?????????????????stop?????
- BY increment??????????????????,????start?to
stop???????????,????????????1????,??????0,?start??
?????,?stop???????????????0,?start???????,?stop???
??????
83- ?4.13 ???????????????????5??????50?
- ???????,????
- data a(dropi j z)
- do i1 to 50 by 1 y0
- do j1 to 5
- znormal(0)
- yyzz
- end
- output
- end
- proc print noobsrun
84- 3?DO WHILE??
- ??????WHILE?????????????,?????DO??????
- ?????? DO WHILE(expression)
- ??????(expression)?????????????,???????????????
?????? - 4?DO UNTIL??
- ???????UNTIL?????????????,?????
- ?????? DO UNTIL(expression)
- ??????(expression)?DO WHILE???????????,???????
???????????? - ?,??DO?????????????
85- ?4.14
- data class4
- input sex chinese maths english _at__at_
- do i1 to 10 by 2 while (n lt 2)
- totalchinesemathsenglish
- n1
- end
- avesum(chinese,maths,english)/3
- cards
- m 82 78 69 f 90 78 89 m 79 86 98 m 76 56 80
- f 72 76 81 f 69 78 91 m 92 71 85
- proc printrun
86- ??????????DATA???????????????????????????CLASS?
SAS???????????????1,????10,?????2,???????n??2,????
????????????????i1?,SAS?????n?2???????n???0(????)
,??2,??????????????????,i??2?3,????n??1??1,??n?2??
???2,????????????,??i??5,?n????2,??n?2???????????,
????,????????avesum(chinese,maths,english)/3????
??????????????????,??n??2??,??????????,?????????
87- ??????
- OBS SEX CHINESE MATHS ENGLISH I N
TOTAL AVE - 1 m 82 78
69 5 2 229 76.3333 - 2 f 90 78
89 1 2 . 85.6667 - 3 m 79 86
98 1 2 . 87.6667 - 4 m 76 56
80 1 2 . 70.6667 - 5 f 72 76
81 1 2 . 76.3333 - 6 f 69 78
91 1 2 . 79.3333 - 7 m 92 71
85 1 2 . 82.6667 -
88- ??Data???????
- ????????,??????????????????
- ?????????????????,???????,?
- ?????????????????????????,
- SAS????????????????????ARRAY??,??????????????????
?,?DATA?????SAS????????????????,SAS???????????????
????? - 1???????
- Array ??? ???????? ????????
- ?????????????
- ?array economic4cost price profit income
- ? costeconomic(1)
- priceeconomic(2)
89- ?????????
- Array ??? ???? ??????? (?????)
- ?array economic4cost price profit income (12
18 81 98) - 2???????
- Array ??? ??,?? ???????
- ? array score40,7 x1-x280
- ??????????score???????????X1, X2,,X280?280???????
??????????????????,??????? -
90- ?X1score1,1, X2score1,2, ??
- 3??????
- ?4.15 ????????1997?1998?1999??3????????,?????????
8?????? -
91- data consumer(dropi)
- input year x1-x8
- array consum8 x1-x8
- do i1 to 8
- if consum(i). then consum(i)0
- sumconsum(i)
- end
- cards
- 1997 1942.59 520.91 395.48 . 232.90 448.38
358.64 185.65 - 1998 1926.89 480.86 201.27 205.16 257.15 499.39
408.39 156.71 - 1999 2959.00 730.80 749.40 513.00 467.87 1142.0
478.00 457.60 - proc print noobsrun
- ?SUM?????????
92- ??? ????SAS???SAS??
- ????(??)??PROC PRINT
- 1?PRINT???????
- ???????SAS??????????????????
- ??????,????????
- ?? Proc print datasasuser.classrun
- PRINT????????
- (1)?????????????
- (2)??????????????
- (3)??????????????,??????????
- (4)??????????????
- (5)?????????
- (6)????????????????????????
-
93- 2.PRINT?????????
- PROC PRINT ltoption-listgt
-
- ????
- ? PROC PRINT??PROC PRINT ltoption-listgt
- ????PRINT???????????????????????
- ?DATASAS-data-set(SAS???)??????????????,
- ???????SAS????
- ?N???????????????????????????
- ????BY??,???BY?????????????BY???????
- ?DOUBLED??????????
- ?ROUNDR?FORMAT????????????????????
- ??,?????????,??????????????????
- ????,????????????,?????????????
- ?NOOBS???????????
94- (2)???????
- VAR variables-list
- BY variable-list
- PAGEBY BY- variable
- SUMBY BY-variable
- SUM variable- list
- ?VAR??(?????????)VAR???
- ???????????????
- ?proc print datasasuser.class
- var x
95- ? BY??BY ???
- ????????DATA??????PROC?,?????????
- ????PROC PRINT?????????????BY????????????????
- ? PAGEBY??PAGEBY ???
- ?????PRINT??????????????PAGEBY????????BY?????
PAGEBY?????BY??????,PRINT??????????????
96- ?5.1
- data sample1
- input x y z _at__at_
- Cards
- 1 1 1 1 2 3 1 7 8 9 5 4 3 4 2
- 4 5 5 6 6 7 1 4 3 5 6 2
- run
- proc sortby xrun
- proc print by xpageby x run
- ?(1)????????,?print???????????(sort??),??print???
? by ????pageby????sort????by ???????? - (2)???,?????pageby x?,??????????????????,??
??????,?????,?????????
97- ? SUM??SUM ???(???)
- ????????????????BY???????BY???,???????????????BY??
SUM????? - ?5.2
- data sample2
- input x y z _at__at_
- cards
- 1 1 1 1 2 3 1 7 8 9 5 4 3 4 2
- 4 5 5 6 6 7 1 4 3 5 6 2
- proc sortby xrun
- proc print
- by xsum y z run
- ????sort???????x??????,print??????y
z????,???????? - ?(1)??BY????????,??BY???????
- (2)??????,??sum y z??sumby x,???????
98- ??????PROC SORT
- 1.SORT???????
- SORT???SAS??????????????????????????,?????????SAS?
???,???????????????,????SAS????BY???????????,?????
?????X????????????X?????Y???????? - 2.SORT?????????
- PROC SORT ltoption-listgtBY ltdescendinggtvariable-1
ltltdescendinggtvariable-ngt - ????
- (1)PROC SORT ???????????????????????????????DATAS
AS-data-set??,?????????????????,?????????SAS?????
?????????OUTSAS-data-set??,?????????,??,?????????
???,????????????????,????????
99- (2)BY??????????,??????????BY???????????,SORT?????B
Y???????????????,?????????????????????????,??????,
?????????????BY?????????descending,???SORT????????
??????,???????? - ?5.3 ??????CLASS???,??????,?????????
100- Data sasuser.class
- Input name sex age height weight
- Cards
- Alice f 13 56 45
- Beka m 12 61 50
- Gail m 14 65 53
- Karen f 11 42 41
- run
101- data paixu
- set sasuser.class
- run
- proc sort outpaixu1
- by sex descending age
- run
- proc print datapaixu1
- title '????????'
- run
102- ???,???set??? sasuser???????class??
- ??????????????paixu?Sort????SEX??
- ??,??????????????????????,?
- ???????paixu1?Print?????????paixu1,
- title?????????????????????
- ????????
- OBS NAME SEX AGE HEIGHT WEIGHT
- 1 Alice F 13 56.5 84
- 2 Karen F 12 56.3 77
- 3 Gail M 14 64.3 90
- 4 Becka M 13 65.3 98
103-
- ??????PROC TRANSPOSE
- 1.TRANSPOSE???????
- TRANSPOSE????SAS??????????SAS???????SAS????,??????
??????,????????????????????? - (1)??????????????????????????????????????
- (2)???????????????????
- (3)??????????????????????????????
104- ???5.3????paixu1????,????
- data transset paixu1run
- proc transpose
- id name
- run
- proc print run
- ???paixu1???????
- OBS _NAME_ ALICE KAREN GAIL BECKA
- 1 AGE 13.0 12.0 14.0 13.0
- 2 HEIGHT 56.5 56.3 64.3 65.3
- 3 WEIGHT 84.0 77.0 90.0 98.0
- ???????,????????????????AGE?
- HEIGHT?WEIGHT???????????????,_NAME_?
- ??????????????????,??????,?
- ??ALICE?KAREN?GAIL?BECKA????????????
- ???????????TRANSPOSE????????
105- 2.TRANSPOSE???????
- PROC TRANSPOSE ltoption-list gt
- ????
- (1)PROC TRANSPOSE ????????SAS????????????????optio
n-list?????????????????????????????????????DATASA
S-data-set??,?????????????????,?????????SAS??????
????????OUTSAS-data-set??,?????????,??,SAS???????
??????????DATAn?
106- (2)???????
- VAR ???
- ID ???
- COPY ???
- BY ???
- ? VAR??????????,??????????????????VAR,????????????
?????????????????????????VAR??????????????????????
,?????COPY?BY?????? - ? ID?????????????????????????????,??ID????????????
?BY???,??BY???ID??????????? - ? COPY?????????????????????????????????
- ? BY??????BY?????????,?BY???????????
107- ?5.4
- data student
- input name sex chi eng
- cards
- li f 85 96
- wang m 88 89
- wu f 90 95
-
- run
- proc transpose outtrans
- var sex chi eng
- id name
- run
- ?(1)???id??????(2)???var??????
108- ?5.5???????????????????????,?????
- ???????????????????????,??????
- ???? ?? ?????? ???? ??? ??
-
(??) (??) (??) - Thomson France Electronics
100 11,917 2441 - Farmland U.S. Food
11 4,723 3255 - Chrysler U.S. Automobiles
128 43,600 2551 - Volkswagen Germany Automobiles 252
46,312 1232 - Nissan Motor Japan Automobiles
143 53,760 805 - Borden U.S. Food
39 6,700 6310 - Mazda Motor Japan Automobiles
33 20,279 4541 - Westinghouse U.S. Electronics
102 11,564 3260 - Amerada Hess U.S. Oil
10 5,852 2680 - Peugeot France Automobiles
144 25,670 258 - ????????????,?????????????????????????????????????
????A,???????????, - ??????A????,??????????
109- ????,????
- data A
- input name20. state goods employ sale profit
- cards
- Thomson France
Electronics 100 11917 2441 - Farmland U.S. Food
11 4723 3255 - Chrysler U.S.
Automobiles 128 43600 2551 - Volkswagen Germany Automobiles
252 46312 1232 - Nissan Motor Japan Automobiles
143 53760 805 - Borden U.S. Food
39 6700 6310 - Mazda Motor Japan Automobiles
33 20279 4541 - Westinghouse U.S. Electronics
102 11564 3260 - Amerada Hess U.S. Oil
10 5852 2680 - Peugeot France
Automobiles 144 25670 258 -
- run
- proc sort outsortAby descending profitrun
- proc transpose dataA outA1
- var state goods employ sale profit
110- ??? ?????SAS??
- ????????????MEANS??
- ???????????
- (?)???????????????
- ????????????????
- 1.???????????
- (1)????(Mean)????µ??,??????
- ,????????????,?????,????????????
- (2)???(Median)????????????????,??????????
- (3)??(Mode)??????????????????????????????????
111- 2.???????????
- (1)??(Range)?????????????????,??????
- ??,????,???????????
- (2)??(Variance)?????????,?????????,??????,??????
- ??????????,????,???????????,????,??????????,????0?
,????????????????? - (3)???(Standard Variance)????????,??????,???????
??? - (4)?????(Coefficient of Variance)??????????????
,????CV.??,?????? - C.V
112- ??????????????????,???????????????????????????????
,??????????????????? - 3.???????????
- (1)??(Skewness)???????????????????,??????,?
????? -
- ?0?,?????????????gt0?,????????????????,??????????
????????,?????????????????lt0?,????????????????,??
????????????????,????????????????????????????,????
????????0?
113- (2)??(Kurtosis)???????????????????,??????????
???????,??????,?????? -
- ??????,??????????????????0???????,?gt0?,???????,???
?X??????????,????????????,???????,?????????lt0?,??
?????,????X??????????,????????????
114- (?)??????????
- ???????,?????????????,??????????????????,?
???????????????????????,??????????????????????????
????????????????????????????,?????????X??????X????
????????????????,??????????????????????????????,??
???????????? - 1.??????????
- (1)????,???,???,???????µ????
- (2)???,????????????????????????????
115(3)????(Percentile),?????????????????????????????,
??????????????????,?????50????,?????0????,??????1
00????????25???,????????,???,?75???,????????,???
?
116- 2.????????????
- (1)????,?? ,???????????(2)????
?,?? ,???????????? - (3)????,??? ?
- (4)??????,??? 100,?????????CV.????
- (5)????????,????????, ,?????????????????
- 3.????????????
- (1)????, ,??????
???? - (2)????, ,??
- ???? ????
117- ?????????????????
- ? ??????? ??????????,?????µ????
?1- ?????? -
??? ?
? ???
118- ?6.1???????????????,??????????????100???,????????
?,??????(????) - 271 396 287 399 466 269 295 330 425
324 228 113 226 176 320 230 404 487 127
74 234 523 164 336 343 330 436 141 388
293 464 200 392 265 403 259 426 262 221
355 324 374 347 261 287 113 135 291 176
342 443 239 302 483 231 292 373 346 293
236 223 371 287 400 314 468 337 308 359
352 273 267 277 184 286 214 351 270
330 238 248 419 330 319 440 427 314 414
299 265 318 415 372 238 323 412 493 286
313 412 - ?????????
- (1) ?100??????????,??????????????
- (2) ?100?????????????
- (3)?100??????????????????
119- ??MEANS??(????)
- ??????SAS?????n???,m????MEANS?????????????
???????????????????,??MEANS???????????????????????
????BY??,?????BY?????????,?????????????????????,ME
ANS??????????????????????????SAS???,????????????? -
- (?)MEANS???????
- MEANS?????????
120????PROC???????,?????????,????????????OUTPUT??,???
????????
121- 1.PROC MEANS ??
- PROC MEANS ????????
- PROC MEANS ltoption-listgtltstatistic-kedword-listgt
- PROC MEANS????????????????PROC MEANS??????????
- (1)DATA SAS- data-set(SAS???),???????????????????
?????,?SAS?????????SAS?????????? - (2)NOPRINT?PRINT,??????????????,??????????????
- (3)MAXDECnumber(??),????????????????????(0?8),???
?????2?
122- (4)ALPHAVALUE(?),?????????????,???0?1??????ALPHA
0.1,??????90?????,???,????ALPHA0.05? - ?????PROC MEANS???????(????????)??????
- N?????????NMISS????????MEAN???STD????MIN????
MAX????RANGE???SUM???VAR???USS??????,????????
??CSS?????,? ?????????CV?????T???????
?t?????PRT??t?????SUMWGT????SKEWNESS???KURTOSIS
???CLM??????????LCLM?????UCLM????? - ?PROC?????????????,MEANS??????VAR??????????5??????
,?????????????????????????????
123-
- ?PROC???????????,MEANS???????????????
- 2.VAR??
- ?????VAR ???
- ????????????????????????????,????????BY?CLASS?
ID?FREQ?WIEGHT????????????????????????? - 3.BY ??
- ?????? BY variable-list
- ??BY???????????????????????????,???BY???,?????????
BY?????????,????NOTSORTED
124- 4.WEIGHT??
- WEIGHT???????WEIGHT ???
- ?????????????????????????????????????0,???0???,???
?0?WEIGHT????????????????????????????????,???,????
????????????????,?????WEIGHT???????????????? - 5.FREQ??
- FREQ???????FREQ ???
- ??????(variable)???????????????????????????lt1???,?
?????????????????????,?????? - ??WEIGHT???FREQ????????FREQ???????????????????,?W
EIGHT??????????????????,???????????????
125- ?5.5
- data q
- input a b _at__at_
- cards
- 4 4 5 7 3 4
- proc means
- freq b
- run
- proc means
- weight b
- run
- ???????b?????a??????,???????
126??b???????????
??b???????????
???????????,???a???b?????????,?????????????,??????
??,?????????b??????,?????????????a???????,???????
???????????,??????????
127- 6.OUTPUT??
- OUTPUT?????MEANS?????????????(?????????????????)?
??????? - OUTPUT ltOUTSAS-data-setgt ltkeywordnamesgt
- SAS-data-set???MEANS?????????????,???????,SAS?????
DATAn?????keywordnames???????????????????????,??
???????????,????????????????????????? - ??Proc means var xoutput outoutmean
meanmeanxrun?????MEANS????X???????mean????X???
???meanx???????outmean?????
128- 7.CLASS??
- CLASS????????CLASS ???
- ??????????????????????????,SAS??????????(variables
-name)?????????????,??CLASS????????,???????????,??
????BY??????? - 8.ID??
- ?????? ID variable
- ????MEANS?????????????????????,?????????????????
- ??MEANS?????
- ??MEANS ?????6.1?
- ???????,SAS??????
129- data incomes
- input income_at__at_
- cards
- 271 396 287 399 466 269 295 330 425 324
228 113 226 176 320 - 230 404 487 127 74 234 523 164 336 343
330 436 141 388 293 - 464 200 392 265 403 259 426 262 221 355
324 374 347 261 287 - 113 135 291 176 342 443 239 302 483 231
292 373 346 293 236 - 223 371 287 400 314 468 337 308 359 352
273 267 277 184 286 - 214 351 270 330 238 248 419 330 319 440
427 314 414 299 265 - 318 415 372 238 323 412 493 286 313 412
-
- proc means dataincomes mean var std cv skewness
- alpha0.1 kurtosis t prt clm
- var incomerun
130- ????DATA ????????incomes?SAS???,PROC???????(means
),????????mean???var???std???? cv??????
skewness???kurtosis???alpha0.1??????0.1??????9
0?tt????prt??t?????clm???????maxdec2????????
,?????income,?????????
131- ????,?????????????313.36????????,???????????????31
3.36?,?90??????(297.88? 328.84?)??????-0.14,???
??-0.19,???????????????????????,???????,??????? - ???????,?????????????????????MEANS??????
132- ??? ?????????
- ??ASSIST?
- 1.??ASSIST??
- 2.??-????-??-?????
- 3.?????????
- 4.????????????????????
- 5.??
133- ??INSIGHT?
- 1.??INSIGHT
- 2.?????????
- 3.??-??-????-??
- 4.???????????
- 5.???????????????????????????????
134- ??????????UNIVARIATE??(?????)
- ???????
- ????,?????????????????????,????,??????????????????
????????,?????????????????????????,????????,??????
????????????????????????????,??????????????,??MEAN
S????????????????,?????????????????,??????????????
???(??????)?????????????????????????? - ????,????????????????????????,??????????????,?????
??????????????????????????,??????????????(Markowi
tz)???????????????,??????????????????????????????
????????,????????????? - ???????????????,??SAS?????UNIVARIATE??(?????)?????
135- ??UNIVARIATE??(?????)
- (?)UNIVARIATE???????
- UNIVARIATE?????????MEANS????????????,?????????????
????? - ???????????
- ??????,????,????????
- ??????????????,?????????
- ??????
- ???????????
- 1.UNIVARIATE?????????
136 2.UNIVARIATE?????????(???MEANS????????????
?) (1)PROC UNIVARIATE?? ??????PROC UNIVARIATE
ltoption-listgt ??????????MEANS???????????,??????
?FREQ,??????????????????????????
?NORMAL,?????????????????,?????????? ??????????
137- ?PLOT,?????????(??????),??????????????
- (2)OUTPUT??
- ???????output-statistic-list???????????,?????????M
EANS????????,???????????? - ?Q3?Q1??????,?75?25???
- ?QRANGE?????????,???Q3-Q1
- ?MSIGN ?????
- ?PROBM ???????????????
- ?SIGNRANK ??????
- ?PROBS ?????????????????
- ?NORMAL ????????
- ?PROBN?????????????????
- ?PCTLPTSpercentiles(????)
- ??????????????????????????????????23?????
138- (?)????
- ?MEANS?????????????,????????????????????
- TMean0,?????0??????t?????
- ProbgtT,????n1?t?????T????????
- Num0,?0??????
- Numgt0,???????
- M(sign),?????0??????????????
- ProbgtM,???????????????
- Sgn Rank,?????0???????Wilcoxon????????
- ProbgtS,????Wilcoxon?????????????
- 100Max,????
- Q3,Q1,Med,???????????
- 0Min,???
- Range,???
139- Q3-Q1,?????????
- Mode,???
- 1,5,10,90,95,99?????
- Extremes,?????????
- ??????NORMAL,???????????
- WNorma l?DNormal,????????
- ProbltW ?ProbgtD????????W?D???????
- ??????PLOT,??????????
- Stem Leaf,????
- Boxplot,????
- Normal Probability Plot,??????
- ??????FREQ,????????????
- Value,??????
- Count,???????
- Precents Cell,????????
- Percents Cum,?????????
140- ?6.2???6.1???????????????????
- data incomes
- input income _at__at_
- cards
- 271 396 287 399 466 269 295 330 425 324
228 113 226 176 320 - 230 404 487 127 74 234 523 164 336 343
330 436 141 388 293 - 464 200 392 265 403 259 426 262 221 355
324 374 347 261 287 - 113 135 291 176 342 443 239 302 483 231
292 373 346 293 236 - 223 371 287 400 314 468 337 308 359 352
273 267 277 184 286 - 214 351 270 330 238 248 419 330 319 440
427 314 414 299 265 - 318 415 372 238 323 412 493 286 313 412
-
- Proc Univariate
- Run
141- ?????????SAS??
- ????????,?????????????????,???????????????????????
?????????????????????????????????????,????????????
???????????,?????????????????????????,???????????,
??????????????????,??????????????,??????,?????????
?????????????????,?????????????? - ????????????,???????????????????????????????,?????
????????????,????????????????????
142- ????????TABULATE??
- ???????????
- 1.??????
- ??????????????????????????????????????????????????
?,??????,????????????????,?????????? - ???????,???????????????????????????,????????
143- ?7.1??200???2002?????????????????
- 2000???????????10?, ??15?,??1.5?????14?,
??10?,??1.6?????3?,??4?,??0.5?? - 20003000?????????20?, ??20?,??2.5?????34?,
??30?,??4.0?????4?, ?8?,??1?? - 30004000?????????15?, ??40?,??5.5?????15?,
??20?,??2.5?????2?,??3.6?,??0.5?? - 40005000?????????20?, ??30?,??3.5?????15?,
??20?,??2.3?????2???5?,??0.8?? - 50006000?????????20?, ??36?,??3.8?????10?,
??28?,??2.5?????1?,??10?,??1.3?? - 6000???????????5?, ??45?,??5.5?????10?,
??35?,??3.4?????0?? - ???????,?????
- (1)???????200???????
- (2)?????????,?????????????
144- (1)???????????,???????7.1
-
(2)?????????,????????????????7.2
145(No Transcript)
146- ??TABULATE??
- (?)TABULATE??????????
- TABULATE?????????????????????????,???????
- ? ????????????????????????
- ? ?????????????????????
- ? ????????????????,????????????????
- 1.TABULATE???????
- TABULATE?????????
1472. TABULATE?????? (1) PROC TABULATE?? ??????PRO
C TABULATE ltoption-listgt ?????????TABULATE???????
,TABULATE??????????????TABLE????????????TABLE?????
??????CLASS??????,?????????VAR???????????????????
148- ?DATASAS-data-set??TABULATE???????????,?????????
?SAS???? - ?FORMATformat-name(???)?????????????,?????????,?
????BEST12.2???????????????????????? - ?NOSEPS?????????????
- (2)CLASS??
- CLASS????????CLASS class-variable-list
- ????????????????????TABLE?????????????????CLAS
S??????????????,??????????????????,???????,???????
?????????
149- (3)VAR??
- VAR????????VAR analysis-variable-list
- ?????????????????TABLE????????????????????????????
??,???????,??????????? - (4)TABLE??
- TABLE????????
- TABLE ltltpage-expression,gt row-expression,gt
column-expression - lt/table-option-listgt
- ??????????????????????????????????????????????????
????????,?????????????????????????? - ?????
- TABLE???????????????????????????????????????????,?
????????,??????,??????????????????????????,?????,?
???????????????????,??????????????(??CLASS??)?????
(??VAR??)????(????????????)????????()???????()???
(,)???(ltgt)??????????
150- ????
- ???????????????????????
- ??(),??????????()???,????????????????,??5.1??peo
pletype ,????????,?????? - ?????????????, ??amount output
profit,???????????????? - ???(),???????????????
- ??(,)????????????(,)???,?????????????????,??7.1??t
ype,amount,??????????? - ???(ltgt),????????
- ????,??????????MEANS?????????????????,???????
151- ?7.1???
- data qiye
- input people 1-11 type 13-20 amount output
profit - label amount??? output?? profit'??'
- cards
- 2000??? ???? 10 15 1.5
- 2000??? ???? 14 10 1.6
- 2000??? ???? 3 4 0.5
- 2000-3000? ???? 20 20 2.5
- 2000-3000? ???? 34 30 4.0
- 2000-3000? ???? 4 8 1
- 3000-4000? ???? 15 40 5.5
- 3000-4000? ???? 15 20 2.5
- 3000-4000? ???? 2 3.6 0.5
- 4000-5000? ???? 20 30 3.5
- 4000-5000? ???? 15 20 2.3
- 4000-5000? ???? 2 5 0.8
- 5000-6000? ???? 20 36 3.8
- 5000-6000? ???? 10 28 2.5
152- proc tabulate
- class people type
- var amount output profit
- table type,amount output profit
- table peopletype,amount output profit
- run
- ????????????DATA????????qiye?SAS???,??label???amo
unt?output?profit??????????????tabulate????,??clas
s???????????,????????????????????var???????????,?
?????????????????tabulate???????table?type(??????
?)?????????????????,??7.1????????????table??peopl
e(????)??,??type??????,????7.1????????????????
153- data qiye
- input people 9. type amount output profit
- label amount??? output?? profit'??'
- cards
- 2000d g 10 15 1.5
- 2000d j 14 10 1.6
- 2000d h 3 4 0.5
- 2000-3000 g 20 20 2.5
- 2000-3000 j 34 30 4.0
- 2000-3000 h 4 8 1
- 3000-4000 g 15 40 5.5
- 3000-4000 j 15 20 2.5
- 3000-4000 h 2 3.6 0.5
- 4000-5000 g 20 30 3.5
- 4000-5000 j 15 20 2.3
- 4000-5000 h 2 5 0.8
- 5000-6000 g 20 36 3.8
- 5000-6000 j 10 28 2.5
- 5000-6000 h 1 10 1.3
154- proc tabulate
- class people type
- var amount output profit
- table type,amount output profit
- table peopletype,amount output profit
- run
155??7.1(A)
156??7.1(B)
157(No Transcript)
158- (?)??
- 1?????ALL
- ????????????????????ALL???????,ALL??????????,??ALL
????????? - ????7.1?,?????TABLE????
- table type all,amount output profit
- ????TABLE????
- table people all,amount typeoutput profit
- ???7.1(A)?????7.1(C),???7.1(B)?????7.1(D)?
- ??ALL????????(1)????(2)??????????????
159(No Transcript)
160(No Transcript)
161- 2.???PCTN?PCTSUM
- PCTN??????????????
- PCTSUM??????????????????
- ??????PCTN?PCTSUMlt????gt??
- ???????,???????,????????????????????????
- (1)????????????????????????????????????????,??????
????? - (2)????????????????????????????????????????,??????
????? ?? PCTSUM??????? - ????????,????????
- ????????,????????
162- ??7.1?????????
- proc tabulate
- class people type
- var output profit
- freq amount
- table type,people(n pctnltpeoplegt) run
- table people,type(n pctnlt peoplegt) run
- ????table????????????????????????,???table????????
?????????????????
163- ????7.1??????
- proc tabulate
- class people type
- var amount output profit
- table type,peopleoutput(sum PCTSUMltpeoplegt)
- table type,peopleprofit(sum PCTSUMltpeoplegt)
- run
- ??????????????????????????
- ??????????????????????????
164- (?)?TABULATE???????
- ?7.2 ?????????????2002????????????region???????,??
es???????so???????we???????ne????????citisize????
??????,?L?M?S???????????????POP??????????product
??????,???a100(???)?a200(???)?a300(???)????salety
pe??????,??R????,W??????quantity?????,?income????
???
165- data sales
- input region citisize pop product saletype
quantity income _at__at_ - CARDS
- es s 25000 a100 r 150 3750 ne s 37000
a100 r 200 5000 - so s 48000 a100 r 410 10250 we s 32000
a100 r 180 4500 - es m 125000 a100 r 350 8750 ne m 237000
a100 r 600 15000 - so m 348000 a100 r 710 17750 we m 432000
a100 r 780 19500 - es l 62500 a100 r 750 18750 ne l
837000 a100 r 800 20000 - so l 748000 a100 r 760 19000 we l 93200
a100 r 880 22000 - es s 25000 a100 w 150 3000 ne s 37000
a100 w 200 4000 - so s 48000 a100 w 410 8200 we s 32000
a100 w 180 3600 - es m 125000 a100 w 350 7000 ne m 237000
a100 w 600 12000 - so m 348000 a100 w 710 14200 we m 432000 a100
w 780 15600 - es l 62500 a100 w 750 15000 ne l 837000
a100 w 800 16000 - so l 748000 a100 w 760 15200 we l 932000
a100 w 880 17600 - es s 25000 a200 r 165 4125 ne s 37000
a200 r 215 5375 - so s 48000 a200 r 425 10425 we s 32000
a200 r 195 4875 - es m 125000 a200 r 365 9125 ne m 237000
a200 r 615 15375 -
166- proc tabulate noseps
- class region citisize product saletype
- var pop quantity income
- table product,regioncitisize,saletype(quantity
income) - table region all ,pop quantity income
- table region citisize,productsaletype quantity
income - table regionproduct all ,(saletype
all)(quantity income) - Run
167- ????????SAS??
- ??????????
- ??????????????????????????????????????????????????
????????????????????????????????????? - ???????,?????????????????????,???????????,????????
????????????? - ????,??????????????????????,???????????????????5.1
?,??????????,??????????????????5.1? - ?????????????,??????????????????????????,????????1
??????????GDP?????????????? - ????????????????????,?????????????????????????????
???????????????????? - ???????????????????,?????????????????????????,????
?????????
168- ?7.3 ??????????????14????????????????????????????
???????,?????????????????????????????????????,??
?????????????????????????,??????????