What about price?
Stop! You forgot to incorporate the effect of temporary PRICE
changes in your model. You can correct this mistake by using the function update()
. The update()
function re-fits the dummy response model by updating and evaluating the log(SALES) ~ DISPLAY + COUPON + DISPLAYCOUPON
relation stored in the dummy.model
object.
Diese Übung ist Teil des Kurses
Building Response Models in R
Anleitung zur Übung
- Update the
dummy.model
object forPRICE
by using theupdate()
function.
Interaktive Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# Update the model for PRICE
___(dummy.model, . ~ . + ___)