Introduction to SAS/willow (Unix) Sam Gordji Weir 107

advertisement
Introduction to SAS/willow
(Unix)
Sam Gordji
ccsam@olemiss.edu
Weir 107
List of Statistical Packages
•
•
•
•
•
SPSS (Windows)
SAS (Windows & Unix)
Mathematica (Windows)
Matlab (Unix)
IMSL (Unix)
General Information
•
IT staff will assist users
– To access these packages
– To find the proper procedure to analyze
their data
•
For assistance please email
– assist@mcsr.olemiss.edu
– ccsam@olemiss.edu
SAS/willow Statistical Package
•
This seminar covers SAS on willow
– SAS/willow may be accessed from just
about anywhere as long as access to the
Internet is available
– Access to SAS willow is free for all UM
students and faculty
Links for SAS
•
The main webpage
– http://www.sas.com/
•
For information on documentation for SAS
visit
– http://support.sas.com/onlinedoc/913/docMainpage.jsp
•
SAS Resources:
http://www.mcsr.olemiss.edu/mathematica/fall_sem/SASRe
sources.ppt
Accessing SAS on willow
•
•
•
•
Willow is Unix server housed in the data
center building
Willow’s operating system is Sun Solaris
(Solaris 10)
Willow is primarily used by researchers
that have large number crunching
programs
Limited knowledge of Unix system is
needed to run SAS
A Few Useful Unix Commands
•
•
•
•
•
•
•
•
•
•
cat --- for displaying a file
cd --- change directory
cd 1--- to move to sub-directory 1 & so on
cp --- for copying files
ls --- see what files you have
pwd --- find out what directory you are in
rm --- remove a file
pico --- a Unix editor
sas --- to activate and run SAS programs
To attend a Unix seminar, please contact
assist@mcsr.olemiss.edu
Accessing SAS on Willow
SAS on willow may be accessed from the
network.
Steps to access willow from a Windows PC:
– Request a willow account from the IT Helpdesk.
– Download/Install SSH Secure Shell Client from
http://www.mcsr.olemiss.edu/appssubpage.php?pagename=ssh2.inc
– Click “Secure Shell Client”
Accessing SAS on Willow (Cont.)
Click “Quick Connect”
Accessing SAS on Willow (Cont.)
•
•
•
For this workshop, everyone can login as student
Fill in “Host Name” and “User Name” as above
Click “Connect”
Accessing SAS on Willow (Cont.)
•
•
Enter your password
Click “OK”
Accessing SAS on Willow (Cont.)
Running SAS on Willow
•
Willow is ready to execute SAS jobs
– cd to the numbered directory assigned to you, e.g.
cd 5
– pwd to print working directory
– ls to list files in working directory
– To view a program, enter:
cat file-name.sas
– To launch a SAS program, enter:
sas file-name.sas
– To view the output of a program, enter
cat file-name.lst
– Note that lst stands for listing
A Short SAS Program: test99.sas
•
•
To view your input, enter cat test99.sas
To run your SAS job enter sas test99.sas
Running SAS jobs
•
To view your output, enter cat test99.lst
Example of Correlation Window/SAS
corr.sas
• Below is an example of correlation analysis
The output from Correlation
Below shows the output of the Correlation Analysis
Some SAS Proc
•
Proc (Procedure)
– proc means (obtains mean, standard
deviation)
– proc anova (performs simple AOV)
– proc plot (plots)
– proc lp (performs Linear Programming)
– proc reg ( performs regression)
– proc corr (performs correlation)
Questions
•
Email contact
– Email your questions to assist@olemiss.edu
•
To look at this presentation and other
materials click Computing Camp at
www.mcsr.olemiss.edu
•
Please fill out the feedback form and
leave your email address so we may
contact you for follow up questions
For Further Practice
On willow
•
Execute the four examples in your path and look at
*.log and *.lst files
Or may download files from:
http://www.mcsr.olemiss.edu/educationsubpage.php?pagen
ame=augcamp08.inc
download and run the following examples
– reg748re.sas
– regcampB3.sas
– regschaum.sas
Download