Beruflich Dokumente
Kultur Dokumente
• What is SAS
— Statistical Analysis System / Software.
SAS
— Integrated system of software products.
• Components of SAS
— Base SAS.
— STAT / GRAPH / OR / FSP / AF / IML / ASSIST / QC /
CONNECT / INSIGHT / EIS / ETS / MDDB Server / ACC-PC
File Formats.
• Invoke a SAS Session / Structure / Interaction
• The LOG, Enhanced Editor, Output Window.
• Help and Online Help • Excel
• Explorer Window.
• Word
• Tools.
• DATA • SPSS
• PROC • ORACLE
• RUN / QUIT
Variable / Column
Values
Observation / Rows
DATA / TABLE
• Subsetting
(drop = c) ;
‘KEEP’
also
(drop = b c) ; could
be used
• IF
• WHERE
• DELETE
• OBS / FIRSTOBS
• OUTPUT
• Manipulating Variables
• Assign LABEL, FORMAT.
• Create New Variables from the Old Ones.
• NUM & CHAR Variables.
• Different Types of Functions.
• NUM to CHAR and CHAR to NUM.
• Sequential processing.
• FORMAT, INFORMAT.
• SAS Date Variables.
• Missing Values
• Manipulate Records
ng the file physically…BY, NODUPKEY, DESCENDING.
the FIRST and LAST record in a group processing.
nd RETAIN.
late using +.
omize using RANUNI.
ing the records.
LAST.a
FIRST.a
Merging KEY
Variable
IF aa and bb
DATA1 DATA2
DATA1
DATA1 DATA1
DATA2
DATA2
DATA2
SAS
• Statistical Procedures
• Use of WHERE, FORMAT and TITLE.
• PROC MEANS
• Difference of PROC MEANS / Mean function
• FREQ
Meansale =
• UNIVARIATE
mean(sale11,sale21,sale31,sale41)
• TABULATE
• REG
• LOGISTIC
• PROC ...
PROC
MEANS
Thousands of PROCedures...
PROC SQL ;
SELECT SUM(Amt) AS Spend
FROM MyTable
WHERE Month = ‘Dec’ ;
QUIT ;
Local SAS
TCP / IP Socket
&
• & and % and its values
• %let and %put
• %macro and %mend Macro variable
• Argument and its value.
• Open Code
• %global and %local
• CALL SYMPUT
• Invoking a macro
• ‘’ and “” in a macro
• MPRINT, SYMBOLGEN
• %include
DATA DSN_SUKIRAN ;
SET OLDDSN ;
%
WHERE UPCASE(NAME) = “SUKIRAN” ;
SAS RUN ;
Digitization
DDE,
Run VB
D:\Baseline.xls
Macro SAS D:\States.pdf
FTP,
ODS
Thank YOU...