Wednesday, March 9, 2011

Kiss My SAS ... part two

Traditional SAS Output
  • Data Set
  • SAS log
  • A Report or Simple Listing
  • Other SAS Files Such as Catalogs
  • External Files or Entries in Other Databases
Data Set

Just what you think it is - it stores multiple data variables, descriptive elements ... names and arrangements of data. Can be temporary or permanent.

SAS Log

A log file ... a record of SAS statements entered and detail about the execution of your program.

A Report or Simple Listing

Grouping and summaries of data ... can display statistics. This can be similar to the example output in the first blog posting.

Other SAS Files Such As Catalogs

Can't be represented as tables or data values. Examples include key settings, letters produced by SAS/FSP software, displays produced by SAS/GRAPH software.

External Files or Entries in Other Databases

Using SAS/ACCESS software you can create and update files stored in databases such as Oracle.

Procedures

The Proc Statement

Two examples:

proc tabulate data=weight_club;
class team;
var StartWeight EndWeight Loss;
table team, mean*(StartWeight EndWeight Loss);
title 'Mean Starting Weight, Ending Weight,';
title2 'and Weight Loss';
run;

And then this produces a table output with the calculations performed.
So you see, this is declaring a tabulate data procedure and assigning it the name weight_club

The second example ... :

proc print data=weight_club;
title 'Health Club Data';
run;

This displays all of the data in the weight_club data set.

So really, you just need a listing of all SAS procedures in order to get anything knocked out.

A Listing of SAS Procedures

Learning Edition TaskSAS PROCSAS Product
Mixed ModelsMIXEDSAS/STAT
Generalized Linear ModelsGENMODSAS/STAT
Split ColumnPROC TRANSPOSEBase SAS
Stack ColumnPROC TRANSPOSEBase SAS
Utility ProcedureAPPENDBase SAS
Utility ProcedureCOMPAREBase SAS
Utility ProcedureCONTENTSBase SAS
Utility ProcedureCOPYBase SAS
CorrelationsCORRBase SAS
Utility ProcedureDATASETSBase SAS
Create FormatsFORMATBase SAS
Utility ProcedureFORMATBase SAS
One-Way FrequenciesFREQBase SAS
Table AnalysisFREQBase SAS
Calculate Summary StatisticsMEANSBase SAS
Utility ProcedureOPTIONSBase SAS
Utility ProcedureOPTLOADBase SAS
Utility ProcedureOPTSAVEBase SAS
Utility ProcedurePLOTBase SAS
Utility ProcedureDELETEBase SAS
List DataPRINTBase SAS
Utility ProcedurePRTDEFBase SAS
RankRANKBase SAS
Utility ProcedureREGISTRYBase SAS
Utility ProcedureREPORTBase SAS
Utility ProcedureSORTBase SAS
Append TableSQLBase SAS
Query BuilderSQLBase SAS
Standardize variables in a SAS data setSTANDARDBase SAS
Utility ProcedureSUMMARYBase SAS
Summary TablesTABULATEBase SAS
TransposeTRANSPOSEBase SAS
Distribution AnalysisUNIVARIATEBase SAS
ARIMA Modeling and ForecastingARIMASAS/ETS
Regression Analysis with Autoregressive ErrorsAUTOREGSAS/ETS
Prepare Time Series DataEXPANDSAS/ETS
Basic ForecastingFORECASTSAS/ETS
Utility ProcedurePDLREGSAS/ETS
Regression Analysis of Panel DataTSCSREGSAS/ETS
Scatter (3D)G3DSAS/GRAPH
SurfaceG3DSAS/GRAPH
Utility ProcedureG3GRIDSAS/GRAPH
Utility ProcedureGANNOSAS/GRAPH
BarGCHARTSAS/GRAPH
DonutGCHARTSAS/GRAPH
PieGCHARTSAS/GRAPH
ContourGCONTOURSAS/GRAPH
Utility ProcedureGOPTIONSSAS/GRAPH
AreaGPLOTSAS/GRAPH
BubbleGPLOTSAS/GRAPH
FinanceGPLOTSAS/GRAPH
LineGPLOTSAS/GRAPH
Line-multi interpolation supportGPLOTSAS/GRAPH
Scatter (2D)GPLOTSAS/GRAPH
RadarGRADARSAS/GRAPH
Capability AnalysisCAPABILITYSAS/QC
cdf PlotCAPABILITYSAS/QC
Comparative HistogramCAPABILITYSAS/QC
HistogramCAPABILITYSAS/QC
P-P PlotCAPABILITYSAS/QC
ProbabilityCAPABILITYSAS/QC
Q-Q PlotCAPABILITYSAS/QC
ParetoPARETOSAS/QC
Box ChartSHEWHARTSAS/QC
c ChartSHEWHARTSAS/QC
Control ChartsSHEWHARTSAS/QC
Individual MeasuresSHEWHARTSAS/QC
Means and RangesSHEWHARTSAS/QC
Means and StandardsSHEWHARTSAS/QC
np ChartSHEWHARTSAS/QC
p ChartSHEWHARTSAS/QC
u ChartSHEWHARTSAS/QC
One-Way ANOVAANOVASAS/STAT
Utility ProcedureBOXPLOTSAS/STAT
Canonical CorrelationCANCORRSAS/STAT
Cluster AnalysisCLUSTERSAS/STAT
Discriminant FunctionDISCRIMSAS/STAT
Factor AnalysisFACTORSAS/STAT
Utility ProcedureFASTCLUSSAS/STAT
Linear ModelsGLMSAS/STAT
Life TablesLIFETESTSAS/STAT
Logistic RegressionLOGISTICSAS/STAT
Nonlinear RegressionNLINSAS/STAT
Non-Parametric One-Way ANOVANPAR1WAYSAS/STAT
Proportional HazardsPHREGSAS/STAT
Principal ComponentsPRINCOMPSAS/STAT
Linear RegressionREGSAS/STAT
SamplingSURVEYSELECTSAS/STAT
Utility ProcedureTREESAS/STAT
T TestTTESTSAS/STAT





No comments:

Post a Comment