-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanova table.sas
More file actions
55 lines (43 loc) · 926 Bytes
/
anova table.sas
File metadata and controls
55 lines (43 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
data toluca;
input LotSize WorkHrs;
cards;
80 399
30 121
50 221
90 376
70 361
60 224
120 546
80 352
100 353
50 157
40 160
70 252
90 389
20 113
110 435
100 420
30 212
50 268
90 377
110 421
30 273
90 468
40 244
80 342
70 323
;
run;
/*
The output in SAS includes an ANOVA table. The regression sums of squares are called the model
sums of squares in SAS.
For simple linear regression, the model F statistic is the same as the F statistic testing
if the Beta corresponding to X (here Lotsize) is 0.
In general, the model F statistic tests if all the predictors are 0. Since we only have one predictor,
for now these tests are equivalent.
Note, we have that t = 10.29 and F = 105.88=10.29^2
*/
proc reg data=toluca;
model WorkHrs = LotSize/ clb ;
run;
quit;