Professional Documents
Culture Documents
Least-Squares Regression Line
Least-Squares Regression Line
The
survey results for 10 stores for year 2019 are shown. The table represents the results from 10
stores.
Store Advertising Costs (RM in thousand) Monthly Sales (RM in thousand)
1 1.8 370
2 1.6 352
3 2.9 673
4 5.1 958
5 1.4 328
6 2.3 559
7 1.4 382
8 3.9 782
9 1.2 233
10 2.1 577
TITLE'Company Stores';
DATA Stores;
INPUT X Y;
DATALINES;
1.8 370
1.6 352
2.9 673
5.1 958
1.4 328
2.3 559
1.4 382
3.9 782
1.2 233
2.1 577
;
PROC PRINT DATA=Stores;
RUN;
PROC CORR DATA=Stores;
RUN;
PROC REG DATA=Stores;
MODEL Y=X;
RUN;
OUTPUT