BaşlayınÜcretsiz başlayın

Do people choose lower prices?

Remember I said I like to look at choice counts for every attribute? Well, we have one last attribute we should look at in the chocolate data: Price. The syntax for xtabs() is the same, so let's see if you can remember it on your own this time.

Bu egzersiz, kursun bir parçasıdır

Choice Modeling for Marketing in R

Kursa Göz Atın

Egzersiz talimatları

  • Use xtabs to compute the counts for Price and Selection for the chocolate data. Assign the result to counts.
  • Plot the results.
  • Inspect the plot. Do people tend to choose lower prices?

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Use xtabs to count up how often each Price is chosen
counts <- ____

# Plot the counts
plot(___, cex=1.5)
Kodu Düzenle ve Çalıştır