НачатьНачать бесплатно

Summarizing the model

Awesome, your last model did a really good job in predicting the sales of Hoppiness. When reporting to the company, you need to quantify this achievement and give some conclusions about the importance of the marketing activities for explaining the sales of Hoppiness.

You can get what you need in a single step by simply applying the function summary() to the extended.model object. The summary() function also summarizes information on your model regarding model fit (R-squared and Adjusted R-squared) and the importance of the effects (P-values).

Это упражнение является частью курса

Building Response Models in R

Посмотреть курс

Инструкции к упражнению

  • Obtain the R-squared measures and the P-values for the extended.model object by using the function summary().

Интерактивное практическое упражнение

Попробуйте выполнить это упражнение, дополнив этот пример кода.

# Extend the sales resonse model
extended.model <- ___(log(SALES) ~ PRICE + Price.lag + DISPLAY + Display.lag + COUPON + Coupon.lag + DISPLAYCOUPON + DisplayCoupon.lag, data = sales.data)

# Summarize the model
Редактировать и запускать код