SAS - PowerPoint PPT Presentation

About This Presentation
Title:

SAS

Description:

SAS Statistical Analysis System 1.1 SAS SAS SAS ... – PowerPoint PPT presentation

Number of Views:77
Avg rating:3.0/5.0
Slides: 38
Provided by: LQ6
Category:
Tags: sas | base

less

Transcript and Presenter's Notes

Title: SAS


1
SAS ??????
Statistical Analysis System
2
??? ??
  • 1.1 SAS????
  • SAS???SAS??????????????????,??????????????????????
    ????????????--????????,??????????????,????????????
    ,???????????????????????,???????????????????SAS???
    ??????????????????? ??????,?????????

3
??? ??
  • 1.1 SAS????
  • SAS???SAS????1976???????,????????????3?????
  • SAS ????????,?????????,????????????????SAS????????
    ?????(????SPSS?????),??????????,??????????

4
??? ??
1.1 SAS????
1.1.1 ???SAS
SAS???????????????? ?30????????,?? 1??????(Base
SAS) 2?????(SAS/STAT?) 3???????(SAS/GRAPH?) 4?
???????(SAS/ACCESS?)
5
  • 1.1.2 SAS??????
  • 1966?, ??North Carolina???????
  • 1976?, SAS????? ?
  • 1985?, ??????????
  • ??,????????????????
  • ???????,?????????

6
  • ? ????SAS????
  • ??????
  • ??????
  • t??
  • ????
  • ????
  • ?????
  • ????

7
1.2 SAS???????
1.2.1 SAS????????
? ??
??1?????? ??2????????????
8
1.2 SAS???????
1.2.1 SAS????????
? ??????
?? PGM ?????? F5 LOG ???? F6 OUTPUT ???? F
7 ?? ???????? ??? ????????
9
1.2.1 SAS????????
? ??
??1?????? ??2???????File???Exit...? ??3??????BY
E?ENDSAS??
10
1.2.2 ???????????SAS??
? ??SAS??
????????,?PGM???????
????????,??????????????? ????????????????
?????????? ???????????????
11
(No Transcript)
12
(No Transcript)
13
1.2.2 ???????????SAS??
? ??????????????,?????? ?DATA????
INPUT???????? , ?????? ???
CARDS????????? ?????????,??????
??????????????????????????????
?PROC????,??????????????????????RUN???
14
1.2.2 ???????????SAS??
? ??SAS??
??????????? ???????F8 ??????????Locals???Subm
it? ?????????SUBMIT ?????
15
1.2.2 ???????????SAS??
? ????
??OUTPUT??( F7 )
? ???????????
??LOG??( F6 )
???????????? ?????????????? ???????? ????????
16
1.2.2 ???????????SAS??
? ??SAS??
?????????
??????SAS?? ????PGM???
???????F4 ??????????Locals???Recall text?
?????????RECALL?????
17
1.2.2 ???????????SAS??
? ??SAS?????????
??????,????
????????????? ??????????File???Save?/ ?Save
as? ?????????FILE????? ????????????????????
18
1.2.2 ???????????SAS??
? ????????
???PGM??,????
????????????? ??????????File???Open?
?????????Include????? ?????????????????????????
????????????
19
1.2.3 SAS?????
Keys????? ???Help???Keys?,????F9,??Keys??,?????
?????
20
1.2.4 SAS?????
  • ????
  • ?????????????????????
  • Locals??
  • ?????SAS???
  • Globals??
  • ????,???????
  • Windows??
  • ???????????????
  • Help??
  • ????????????

??????????
21
2.1 SAS????????????
??? SAS????
  • 2.1.1 SAS???(SAS Dataset)
  • ?SAS???????,??SAS??????????????????????
  • 1. ????
  • ???????????????
  • 2. ????
  • ????????
  • SAS???????????????????

22
(No Transcript)
23
  • 2.1.2 ??(Observation)
  • ????????????(????????????)?????????????????,????
    ??SAS???????????????
  • 2.1.3 ??(Variable)
  • ??????????????SAS????,??????????????????????????
    ????????

24
  • 1. ?????
  • ??8????,???????????????,??????????(?,_at_,)
    ?????SAS???????????
  • A A1 abc name age total
  • SAS??????????,???????????_N_?_ERROR_??

25
  • 2. ????
  • ??????????????????????????
  • ???????????(?????? ??)?
  • ??????????????????8 (???????????????,??? LENGTH??
    )?

26
  • ????????????????????????????
  • DATA A
  • C'BAD'
  • PUT C
  • C'GOOD'
  • PUT C
  • RUN

27
  • 3. ?????????
  • ??????????????????
  • (P13?2-1)
  • INPUT NAME VAR1 VAR2 VAR3 VAR4 VAR5
    VAR6
  • ????
  • INPUT NAME VAR1-VAR6
  • ?? ?????NAME????????????
  • ??????????,???????????????

28
  • 4. ???
  • ???????????????(???????,???????,???????),
    ???????(?????)??SAS??.???

29
2.1.4 ?? (Constant)
  • SAS??????????
  • ????????
  • ????1.5 -2.79 1.75E-5
  • ????Hello ABC Zhangli
  • ??????????????D,T,DT
  • 1JAN2000D
  • 92519T
  • 1JAN2000103005DT

30
2.2 SAS??
  • ?????????,??????
  • ??????????
  • ???????????????????
  • ?y SUM ( 1, 2, 3)
  • ???SUM
  • ??1, 2, 3
  • ???6 (??????)
  • ????
  • 1. ?????SUM(x1, x2, x3)
  • 2. ?????SUM(OF x1-x3)
  • 3. ?????SUM(OF x1 x2 x3)

31
2.3 SAS???(???)
  • 1. ?????
  • / -
  • ? y x 2 b
  • C (12 4) 2
  • 2. ?????
  • gt gt lt lt
  • ?? ???????,???,??? 1
  • ????,??? 0
  • ? y 3 gt 2 (?? y ?? 1)
  • x ABC gt ABD (?? x ?? 0)

32
  • 3. ?????
  • (AND) (OR) (NOT)
  • ????????,???????
  • ?(1),?(0)

33
  • 4. ?????
  • gt lt ???
  • lt gt ???
  • ??
  • ? y 3 lt gt 4 ( y ??4 )
  • x RED BAG
  • ( x ??RED BAG )

34
  • 5. SAS???
  • ??????????????????????,????????(?????)?
  • X1
  • 3
  • LOG(Y)
  • PART/ALL100
  • 1-EXP(N/(N-1))
  • AGElt100
  • STATE'NC'? STATE'SC'
  • ABC

35
2.5 ?????
  • ???? DATA ????,???????????,????????,??
    ???????????,????????,????????,??????????????

36
  • ?
  • DATA FITNESS
  • INPUT NUM SEX AGE WEIGHT HEIGHT
  • RATIOWEIGHT/HEIGHT
  • CARDS
  • 1001 F 19 47 1.69
  • 1002 M 20 55 1.74
  • 1003 F 18 49 1.66
  • RUN

37
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com