In: Statistics and Probability
What are the SAS Coding and SAS Results for a multiple regression analysis of the following data, where the price of the house is the dependent variable?
House Price |
Living Area |
Bathrooms |
Bedrooms |
97739 |
1276 |
2 |
2 |
97783 |
1061 |
1 |
3 |
98423 |
1355 |
1 |
3 |
99045 |
937 |
1 |
2 |
99082 |
924 |
1 |
2 |
SAS CODE:
data housing;
infile datalines firstobs=2 ;
input Houseprice livingarea bathrooms bedrooms;
datalines;
House Price Living Area
Bathrooms Bedrooms
97739 1276 2 2
97783 1061 1 3
98423 1355 1 3
99045 937 1 2
99082 924 1 2
;
run;
proc reg data=housing;
model Houseprice = livingarea bathrooms bedrooms;
run;
OUTPUT:
Parameter Estimates | |||||
Variable | DF | Parameter | Standard | t Value | Pr > |t| |
Estimate | Error | ||||
Intercept | 1 | 102244 | 153.1355 | 667.67 | 0.001 |
livingarea | 1 | 2.16707 | 0.22167 | 9.78 | 0.0649 |
bathrooms | 1 | -2073.22 | 95.17085 | -21.78 | 0.0292 |
bedrooms | 1 | -1561.86 | 76.88854 | -20.31 | 0.031 |
Multipple regression eq is
houseprice=102244+2.16707*livingarea-2073.22*bathrooms-1561.86*bedrooms