First, load conjoint
package:
library(conjoint)
Then, I load chocolate
data:
data(chocolate)
#cprof (profiles - cards)
#cpref (preferences - stack shape)
#cprefm (preferences - unstack shape)
#clevn (levels into attributes)
#csimp (simulation importance matrix)
I execute the follow command:
ShowAllUtilities(x = cprof, y = cpref, z = clevn, y.type = "score")
Consider this part of the output:
[1] "Part worths (utilities) of levels (model parameters for whole sample):"
levnms utls
1 intercept 8,6849
2 milk -1,0891
3 walnut -0,7328
4 delicaties -0,9224
5 dark 2,7443
6 low -0,5709
7 average 0,1188
8 high 0,4521
9 paperback -0,0287
10 hardback 0,0287
11 light -0,1686
12 middle 0,1734
13 heavy -0,0048
14 little -0,6466
15 much 0,6466
I calculate the average importance of utilities manually:
First, kind attribute:
2 milk -1,0891
3 walnut -0,7328
4 delicaties -0,9224
5 dark 2,7443
2,7443 - (-1,0891) = 3,8334
Price:
6 low -0,5709
7 average 0,1188
8 high 0,4521
0,4521 - (-0,5709) = 1,0230
Packing:
9 paperback -0,0287
10 hardback 0,0287
0,0287 - (-0,0287) = 0,0574
Weight:
11 light -0,1686
12 middle 0,1734
13 heavy -0,0048
0,1734 - (-0,1686) = 0,3420
Calories:
14 little -0,6466
15 much 0,6466
0,6466 - (-0,6466) = 1,2932
Where the sum is 6,5490
And calculate the average importances for each attribute:
First, kind attribute importance:
3,8334/6,5490 = 0,5853*100 = 58,53
Price
1,0230/6,5490 = 0,1562*100 = 15,62
Packing:
0,0574/6,5490 = 0,0088*100 = 0,8765
Weight:
0,3420/6,5490 = 0,0522*100 = 5,22
Calories:
1,2932/6,5490 = 0,1975*100 = 19,74
But, the output Average importance of factors (attributes)
is:
56,79 16,42 5,43 10,61 10,75
Sum of average importance: 100
What is the explanation for this inaccuracy?