LoslegenKostenlos loslegen

Interaction between price and trial

The chocolate data is still loaded. Next, let's look at an interaction between price and a variable that isn't a product attribute. We don't have any variables describing the user in this data, but we do have the variable Trial, which indicates the order of the 25 choice questions that each respondent answered. They are numbered 1 through 25.

Diese Übung ist Teil des Kurses

Choice Modeling for Marketing in R

Kurs anzeigen

Anleitung zur Übung

  • Add a formula to the mlogit() call for a model with Brand, Type, Price, and the interaction between Price and Trial. Don't forget to leave out the intercept.
  • Use summary to see the model coefficients for choc_m5. Find the coefficients for the interaction.

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

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

# use summary to see the outputs
Code bearbeiten und ausführen