IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Building Response Models in R

Visualizza il corso

Istruzioni dell'esercizio

  • Update the dummy.model object for PRICE by using the update() function.

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Update the model for PRICE
___(dummy.model, . ~ . + ___)
Modifica ed esegui il codice