In: Math
In SAS code please.
Tennis balls are tested in a machine to show how many bounces they can withstand before they fail to bounce 30% of their dropping height. Two brands of balls (W and P) are compared. In addition, the effect of shelf life on these brands is tested. Half of the balls of each brand are 6 months old, the other half, fresh. Using a two-way analysis of variance, what conclusions can you reach? The data are shown below:
Brand W (New): 67 72 74 82 81
Brand P (New): 75 76 80 72 73
Brand W (Old): 46 44 45 51 43
Brand P (Old): 63 62 66 62 60
DATA df;
INPUT Age $ count ;
DATALINES;
New 67
New 72
New 74
New 82
New 81
old 46
old 44
old 45
old 51
old 43
New 75
New 76
New 80
New 72
New 73
old 63
old 62
old 66
old 62
old 60
;
DATA df;
DO brand = 'w','p';
DO age = 'n','o';
DO cell = 1 TO 5;
INPUT count @;
OUTPUT;
END;
END;
END;
DATALINES;
67 72 74 82 81 46 44 45 51 43 75 76 80 72 73 63 62 66 62 60
;
PROC ANOVA DATA=lab62;
CLASS brand age;
MODEL count = brand |age;
MEANS brand | age ;
RUN;
if p-value < alpha, we reject the null hypothesis
if p-value > alpha, we fail to reject the null hypothesis
here p-value is less than alpha for all three factors, hence they all are significant