Professional Documents
Culture Documents
Plot
Graph the variables 1st step is there a linear relationship? If not, OLS regression is not useful Remember that is why, print the data if small or Summarize the data if large Get a feel of the data set before crunching the numbers
Relation
A clear linear relation is observed Ocular Estimation gives the go ahead We know we can run a regression Use PROC REG
ANOVA
Analysis of Variance Source Model Error Corrected Total DF 1 56 57 Sum of Squares 71534 21698 93232 Mean Square 71534 387.46904 F Value 184.62 Pr > F <.0001
0.7673 0.7631
Regression Estimates
Parameter Estimates D F Parameter Estimate 5.43157 Standar d Error 8.19061 95% Confidence Limits
Variable
Label
t Value 0.66
Pr > |t|
Intercept Intercept 1
Size
Size
56.08328
4.12758
13.59
Prediction
DATA Xvalue; INPUT size price; CARDS; 1.750 .; DATA homeprice; SET homeprice Xvalue; PROC REG DATA=homeprice; MODEL Price=Size / clm cli; RUN;
New Statements
The options clm and cli will give us Confidence Intervals for the mean of Y, for the values of X (the sizes) in the data set. The CARDS statement lets you quickly append additional lines of data and should be used if you are adding a small amount of data internal to your program In case we had to get the same details (predictions) for a large dataset we would have used the INPUT or IMPORT command
Review
In the 2nd half of the class we will review the entire semester If there are any questions please let me know. If not, I will walk you through the salient points of the course so that you get no surprises on this material in the future.