Displaying 1 result from an estimated 1 matches for "data_ab".
Did you mean:
data_ac
Which is the easiest (most elegant) way to force "aov" to treat numerical variables as categorical ?
2010 Jun 14
2
Which is the easiest (most elegant) way to force "aov" to treat numerical variables as categorical ?
...’ 1
This results differ from book result at p 159, since "cars" and "driver" are treated as numerical variables by "aov".
BRUTE FORCE SOLUTION
Manually transforming "cars" and "driver" into categorical variables, I obtain the correct result:
> DATA_AB
driver cars additive y
1 D1 C1 A 19
2 D2 C1 D 23
3 D3 C1 B 15
4 D4 C1 C 19
5 D1 C2 B 24
6 D2 C2 C 24
7 D3 C2 D 14
8 D4 C2 A 18
9 D1 C3 D 23
10 D2 C3 A 19
11...