Hello,
I'm looking to get the SS between groups for each categorical variable of a model.
For instance, I have :
Data HAVE; INPUT VAR_1 $ Var_2 $ Y $ ; DATALINES; 0,50_A N 24,14 0,50_A N 30,47 0,50_B N 20,41 0,50_B N 17,6 0,50_B N 34,67 0,50_B N 25,29 0,50_B N 26,14 0,50_B N 22,89 0,50_B N 27,36 0,50_B O 41,85 0,50_B O 34,31 0,50_B O 22,82 0,50_B O 14,15 0,50_B O 20,87 0,50_B O 20,38 0,50_B O 20,33 0,76_0,80 O 20,3 0,76_0,80 O 42,98 0,81_0,86 O 23,61 0,9 O 24,91 ; run;
Where my model is Y = VAR_1 VAR_2
On Excel I managed to find the SS between groups for VAR_2 (which is 1,81) as the Proc ANOVA outputed. Nevertheless, when doing the same calculus but for VAR_1, I get a SS of 88,82 when the Proc ANOVA outputs 872.3818586.
The formula I use is this one : https://arc.lib.montana.edu/book/statistics-with-r-textbook/meta/img/Equation2.5.jpeg.
Where J is the number of groups (2 for VAR_2 and 5 for VAR_1) and nj is the number of observations in each group.
My questions are : How can i get the SS between groups (i.e the 88,82 that I got with the formula) automatically with SAS for all the variables of my model ? Besides how is the Anova SS for each variable is calculated ? Thank you for your help.
... View more