Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 Regression in SAS Caitlin Phelps

2 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 ;

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

4 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;

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

6 Example Output Determine Significance in model

7 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

8 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!


Download ppt "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."

Similar presentations


Ads by Google