LoslegenKostenlos loslegen

How do people value white chocolate?

With effects coding, we can find the parameter for the left-out level as the negative sum of the parameters for the other levels of the factor. Let's compute the value of White chocolate using this rule. choc_m7 is still loaded.

Diese Übung ist Teil des Kurses

Choice Modeling for Marketing in R

Kurs anzeigen

Anleitung zur Übung

  • The coefficients for the levels of Type are in positions 5 to 8. Select these coefficients and print them to confirm.
  • Compute the negative sum of those coefficients. This is the coefficient for the left-out White type.

Interaktive Übung

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

# print the coefficients 


# compute the negative sum of those coefficients
Code bearbeiten und ausführen