Get startedGet started for free

What types of chocolate do people choose?

The chocolate data has been loaded in long format with one row for each alternative in each observed choice. Remember that the Type, Brand and Price describe each alternative and the Selection variable tells us what the respondent chose. Let's use xtabs() to find out how often people choose each type of chocolate.

This exercise is part of the course

Choice Modeling for Marketing in R

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise