The effect of display on sales
To see how much of an effect the DISPLAY actions have on log(SALES) you construct a simple response model for explaining log(SALES) by DISPLAY. The log(SALES) ~ DISPLAY relation is again estimated by the function lm(). Finally, you investigate the coefficients.
Questo esercizio fa parte del corso
Building Response Models in R
Istruzioni dell'esercizio
- Explain
log(SALES)byDISPLAY. Use the functionlm()and assign the result to an object calleddummy.model. - Obtain the coefficients of the
dummy.modelby using the functioncoef().
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
# Explain log(SALES) by DISPLAY
dummy.model <- ___(___, data = sales.data)
# Obtain the coefficients