intro_sas0827.ppt

advertisement
Introduction to SAS
Welcome to IT’s seminar on stat.
packages
Sam Gordji, ccsam@olemiss.edu
Weir 107
List of Statistical Packages
•
•
•
•
•
SPSS
SAS
Mathematica
Mathlab
IMSL
SAS
•
•
•
•
50 copies are available for faculty use
For each copy purchased, a faculty
member can get a free copy (to be
installed on a student PC)
The cost is $100 per copy per year
To obtain a copy of SAS please email
– ccsam@olemiss.edu
– assist@mcsr.olemiss.edu
List of Statistical Packages
Mathematica
 Free copy for faculty, staff, and students. To
obtain a copy of Mathematica please visit:
http://www.mcsr.olemiss.edu/appssubpage.php?pagena
me=mathematica.inc
List of Statistical Packages
Matlab
 Matlab is available on willow and sweetgum
 Other packages such as Fortran, IMSL, etc. will
be mentioned briefly
List of Statistical Packages
IMSL
 IMSL is a comprehensive package containing
Math, stat., and special functions
 IMSL is available only on sweetgum
 IMSL is a set of subroutines called by a Fortran
program
General Information
 Email contact
– Email your questions to ccsam@olemiss.edu
 To download this and other materials visit:
http://www.mcsr.olemiss.edu/appssubpage.php?pagename=augcamp08.inc
Please fill out the performance report and leave
your email address so we may contact you for
follow up questions
General Information
 This seminar covers SAS
 SPSS, SAS, and Mathematica are
available in Weir Student Lab (5 copies)
, Weir 107, and several other labs
around campus
 We’ll look at a few short examples of
SAS
General Information
 SAS performs statistical analysis
 SPSS performs statistical analysis and is
similar to SAS
 Mathematica’s main function is to perform
mathematical operations including
statistics
 MathWorks is similar to Mathematica and
is available on willow and sweetgum
General Information
 IT staff will assist users to access these
packages. We also assist users to find the
proper procedure to analyze their data. If
you need assistance please send email to
Sam Gordji at ccsam@olemiss.edu,
assist@mcsr.olemiss.edu , or
mathadm@olemiss.edu
Today We’ll Cover
 Creating a simple SAS program (*.log,
*.lst)
 Creating and running a small SAS
 Checking the *.log file
 Checking the *.lst, listing file
Activating and Running SAS on
Windows
Click on the “SAS” icon to activate SAS
Enter the just the blue text in the Editor window
data test;
/* The name of the program */
input a b c;
/* Variables are a, b, and c */
cards;
/* Input will follow “card” */
123
2 3 -1
;
/* end of data */
proc print; proc means;
run;
/* run procedures print & means */
Running SAS on Windows
Click “run” and then “submit” the above example
Running SAS on Windows (Cont.)
Results will appear in the “output” window
Running SAS on Windows (Cont.)
Above shows the log file
Download