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

Interaction between brand and type

The chocolate data is loaded as an mlogit.data object and ready to go. Feel free to inspect it to refresh your memory. Once you've done that, you are going to fit a model with an interaction between Brand and Type.

Bu egzersiz

Choice Modeling for Marketing in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Add a formula to the mlogit() command for a model with Brand, Type, Price, and the interaction between Brand and Type. Remember that the Selection column contains the observed choice and don't forget to leave out the intercept.
  • Summarize choc_m4 to see its model coefficients.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# add the formula for mlogit
choc_m4 <- mlogit(___, data=chocolate)

# use summary to see the coefficients
Kodu Düzenle ve Çalıştır