Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Correlation & Regression with SAS Sam Gordji Weir 107.

Similar presentations


Presentation on theme: "Introduction to Correlation & Regression with SAS Sam Gordji Weir 107."— Presentation transcript:

1 Introduction to Correlation & Regression with SAS Sam Gordji ccsam@olemiss.edu Weir 107

2 List of Statistical Packages SPSS (Windows) SAS (Windows & Unix) Mathematica (Windows) Matlab (willow, Unix) IMSL (sweetgum, Unix)

3 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.eduassist@mcsr.olemiss.edu –ccsam@olemiss.educcsam@olemiss.edu

4 SAS/PC Statistical Package This seminar covers Introduction to Correlation and Regression with SAS SAS is available in –Weir Student Lab (4 PCs) –Weir 107 –Several other labs around campus SAS is also installed on willow (Unix server) SAS performs statistical analysis

5 Statistical Package: SAS/PC (cont.) 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.educcsam@olemiss.edu –assist@mcsr.olemiss.eduassist@mcsr.olemiss.edu

6 Links for SAS The main webpage –http://www.sas.com/http://www.sas.com/ For information on documentation for SAS visit –http://support.sas.com/onlinedoc/913/docMainpage.jsphttp://support.sas.com/onlinedoc/913/docMainpage.jsp SAS Resources: http://www.mcsr.olemiss.edu/mathematica/fall_sem/SASRe sources.ppt

7 Activating and Running SAS on Windows Click on the “SAS” icon to activate SAS Create your program (below) in a window named “Editor- Untiled1” Blue Text is your program data test; /* The name of the program */ input a b c; /* Variables are a, b, and c */ cards; /* Input will follow “card” */ 1 2 3 2 3 -1 ; /* end of data */ proc print; proc means; run; /* run procedures print & means */

8 Running SAS on Windows Click “run” and then “submit” the above example

9 Running SAS on Windows (Cont.) Results will appear in the “output” window

10 Running SAS on Windows (Cont.) Above shows the log file

11 Correlation and Regression Regression is used for prediction and Estimation Examples of simple linear Regression will be given here Correlation obtains the relationship between two variables Example of both parametric and non- parametric Correlation will be given here

12 An Example of Linear Regression reg748re.sas Below is an example of regression analysis Data is entered into “Editor”

13 The output from Linear Regression Below shows the output of the Regression Analysis

14 Below is an example of Correlation analysis

15 Output of the Correlation Analysis

16 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)

17 Questions Email contact –Email your questions to assist@olemiss.eduassist@olemiss.edu To look at this presentation and other materials visit, click Computing Camp at www.mcsr.olemiss.edu www.mcsr.olemiss.edu Please fill out the feedback form and leave your email address so we may contact you for follow up questions

18 For Further Practice Download the following four SAS examples to your PC –reg748re.sas –regcampB3.sas –regschaum.sas From http://www.mcsr.olemiss.edu/educationsubp age.php?pagename=augcamp08.inc


Download ppt "Introduction to Correlation & Regression with SAS Sam Gordji Weir 107."

Similar presentations


Ads by Google