Regression in SAS Caitlin Phelps. Importing Data  Proc Import:  Read in variables in data set  May need some options incase SAS doesn’t guess the format.

Slides:



Advertisements
Similar presentations
Technology Short Courses: Spring 2010 Kentaka Aruga
Advertisements

All Possible Regressions and Statistics for Comparing Models
Topic 12: Multiple Linear Regression
Statistical Techniques I EXST7005 Multiple Regression.
Path Analysis SAS/Calis. Read in the Data options formdlim='-' nodate pagno=min; TITLE 'Path Analysis, Ingram Data' ; data Ingram(type=corr); INPUT _TYPE_.
Xuhua Xia Slide 1 Correlation Simple correlation –between two variables Multiple and Partial correlations –between one variable and a set of other variables.
Multiple Linear Regression
SAS Programming: Working With Variables. Data Step Manipulations New variables should be created during a Data step Existing variables should be manipulated.
Topic 3: Simple Linear Regression. Outline Simple linear regression model –Model parameters –Distribution of error terms Estimation of regression parameters.
Some Terms Y =  o +  1 X Regression of Y on X Regress Y on X X called independent variable or predictor variable or covariate or factor Which factors.
Psychology 202b Advanced Psychological Statistics, II February 22, 2011.
Interacting a dummy variable with a continuous variable Consider one of the regression models in your statistics assignment: the dependent variable is.
Plots, Correlations, and Regression Getting a feel for the data using plots, then analyzing the data with correlations and linear regression.
Quick Data Summaries in SAS Start by bringing in data –Use permanent data set for these examples Proc Tabulate –Produces summaries very quickly and easily.
Data mining and statistical learning, lecture 3 Outline  Ordinary least squares regression  Ridge regression.
EPI809/Spring Testing Individual Coefficients.
1 Chapter 1 Introduction Ray-Bing Chen Institute of Statistics National University of Kaohsiung.
This Week Continue with linear regression Begin multiple regression –Le 8.2 –C & S 9:A-E Handout: Class examples and assignment 3.
Collection and Analysis of Data CPH 608 Spring 2015.
SAS Lecture 5 – Some regression procedures Aidan McDermott, April 25, 2005.
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
Topic 2: An Example. Leaning Tower of Pisa Construction began in 1173 and by 1178 (2 nd floor), it began to sink Construction resumed in To compensate.
18b. PROC SURVEY Procedures in SAS ®. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.
Managerial Economics Demand Estimation. Scatter Diagram Regression Analysis.
Regression For the purposes of this class: –Does Y depend on X? –Does a change in X cause a change in Y? –Can Y be predicted from X? Y= mX + b Predicted.
Lecture 6 Correlation and Regression STAT 3120 Statistical Methods I.
Quantify the Example Data First, code and quantify the data (assign column locations & variable names) Use the sample data to create a data set from the.
Bridging (Closing) the “bitness gap” in Sas 9.4 Ron Dewar Dalhousie U. and Cancer Care NS.
Randomized Block Design (Kirk, chapter 7) BUSI 6480 Lecture 6.
Survivor Statistical Research Group “We get the job done, even if it kills us.” Welcome! Who is Survivor SRG? Brendan Biamon, Matthew Carroll, Samira Fazel,
Then click the box for Normal probability plot. In the box labeled Standardized Residual Plots, first click the checkbox for Histogram, Multiple Linear.
C opyright  2007 by Oxford University Press, Inc. PowerPoint Slides Prepared by Robert F. Brooker, Ph.D.Slide 1 1.
6-1 Introduction To Empirical Models Based on the scatter diagram, it is probably reasonable to assume that the mean of the random variable Y is.
STAT 3130 Statistical Methods I Lecture 1 Introduction.
Linear Regression Analysis Using MS Excel Tutorial for Assignment 2 Civ E 342.
By: Corey T. Williams 03 May Situation Objective.
ECON 338/ENVR 305 CLICKER QUESTIONS Statistics – Question Set #8 (from Chapter 10)
Simple Linear Regression. Data available : (X,Y) Goal : To predict the response Y. (i.e. to obtain the fitted response function f(X)) Least Squares Fitting.
1 Experimental Statistics - week 12 Chapter 12: Multiple Regression Chapter 13: Variable Selection Model Checking.
Experimental Statistics - week 3
Computing with SAS Software A SAS program consists of SAS statements. 1. The DATA step consists of SAS statements that define your data and create a SAS.
1 Simple Linear Regression and Correlation Least Squares Method The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES.
Multiple Imputation using SAS Don Miller 812 Oswald Tower
Using SPSS Note: The use of another statistical package such as Minitab is similar to using SPSS.
Multiple Regression Analysis Regression analysis with two or more independent variables. Leads to an improvement.
Chapter 8: Using Basic Statistical Procedures “33⅓% of the mice used in the experiment were cured by the test drug; 33⅓% of the test population were unaffected.
Testing Significance of coefficients Usually, first examination of model Does the model including the independent variable provide significantly more information.
Customers perception & buying behavior in choosing cars & Their brand preference in the car market At ABT Maruti Suzuki, Guindy, Chennai SAP Term Project.
Chapter 14 Introduction to Regression Analysis. Objectives Regression Analysis Uses of Regression Analysis Method of Least Squares Difference between.
Lab 4 Multiple Linear Regression. Meaning  An extension of simple linear regression  It models the mean of a response variable as a linear function.
Four way analysis Nursing home residence Gender Age Death.
1 Experimental Statistics - week 11 Chapter 11: Linear Regression and Correlation.
1 Objective Given two linearly correlated variables (x and y), find the linear function (equation) that best describes the trend. Section 10.3 Regression.
Regression Models First-order with Two Independent Variables
Regression and Correlation of Data Summary
LINEAR REGRESSION 1.
PowerPoint Slides Prepared by Robert F. Brooker, Ph.D. Slide 1
Principles and Worldwide Applications, 7th Edition
LEAST – SQUARES REGRESSION
Linear Regression Special Topics.
SPSS Examples from Our Homework
BIVARIATE REGRESSION AND CORRELATION
Multiple Regression A curvilinear relationship between one variable and the values of two or more other independent variables. Y = intercept + (slope1.
6-1 Introduction To Empirical Models
Simple Linear Regression
Introduction to Logistic Regression
Model selection Stepwise regression.
Multiple Linear Regression
Cases. Simple Regression Linear Multiple Regression.
Regression and Correlation of Data
Presentation transcript:

Regression in SAS Caitlin Phelps

Importing Data  Proc Import:  Read in variables in data set  May need some options incase SAS doesn’t guess the format proc import datafile = Name of File ; out = what you want to name it in SAS ; dbms = type of data ; run ;

Example: proc import datafile ='C:\Users\Owner\Desktop\Sports Stats\QBdata.csv' out=QBdata dbms=csv ; run;

Simple Regression  Procedure: Reg  Use model and/or var statement  Useful for simple linear regression and when you manipulate a regressor (ie. Squared, etc.) proc reg datafile = ‘name of file’ model dependent = independent ; run;

Example proc reg datafile = 'C:\Users\Owner\Desktop\Sports Stats\QBdata.csv' model avgrush = Dash10 Vertical ; run;

Example Output Determine Significance in model

Other Regression Procedures  Logistic  Stepwise  Add or remove variables systematically if they are significant or not  SYSLIN  Two stage least squares: error term is correlated with independent variables

Remember  You can find anything about SAS and its procedures online!  Don’t worry if you don’t know all this yet, that’s why we’re in teams!