เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Building Response Models in R

ดูคอร์ส

คำแนะนำการฝึกหัด

  • Explain log(SALES) by DISPLAY. Use the function lm() and assign the result to an object called dummy.model.
  • Obtain the coefficients of the dummy.model by using the function coef().

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Explain log(SALES) by DISPLAY
dummy.model <- ___(___, data = sales.data)

# Obtain the coefficients
แก้ไขและรันโค้ด