Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Company have to study the relationship between the advertising costs and the monthly sales.

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

X=Advertising costs (RM in thousand) Y=Monthly Sales (RM in thousand)


The least-squares regression line is

Y^ = ^β0 + β^ 1 X=102.654 +176.686 x


SAS PROGRAMMING

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

You might also like