SAS Procedures
SAS Procedures
Anil Kumar
PROC tabulate
• Summarize the data in the form of a well
organized table
• Syntax:
Result:
PROC tabulate – example (2)
proc tabulate data=sashelp.Class;
class sex;
var height weight age;
table sex all, (age height weight)*(std mean sum);
run;
Result:
Gplot – A simple example
• SAS/ Graph modular is feathered by the
flexible PROC gplot
• A simple example:
Cerrito
PROC REG
• Inputs and output are interval
• Ordinal data may be included
• Assumptions on ε
– Normally distributed
– ε has mean zero and constant variance
– Is independent
• Residual analysis should be a routine part
of the analysis
Residuals
• The studentized residual, the RSTUDENT
statistic, is similar to the the standardized
residual except that the mean square error
is calculated omitting the observation.
• Observations with studentized residual
absolute values of greater than 2 are
potential outliers.
Regression Example
Output
Scatterplot With Regression Line
Residuals
PROC ANOVA
• Each treatment should have exactly the
same number of observations; every
categorical outcome has the same
number of observations.
• Caution: If you use PROC ANOVA for
analysis of unbalanced data, you must
assume responsibility for the validity of the
results.
• Use PROC GLM instead.
Categorical Procedures
Model Output Variable Types of Inputs Assumptions
----------------------
Please take a minute to complete the feedback form and
leave it on the counter as you exit. Thank you.
Note: EG project files, programs and other SAS source used in the original presentation
are available by request, but they are not contained in this online version - kmg