DataCamp Building Response Models in R
Fundamentals of market response models
BUILDING RESPONSE MODELS IN R
Fundamentals of market response models Kathrin Gruber Assistant - - PowerPoint PPT Presentation
DataCamp Building Response Models in R BUILDING RESPONSE MODELS IN R Fundamentals of market response models Kathrin Gruber Assistant Professor of Econometrics Erasmus University Rotterdam DataCamp Building Response Models in R Marketing mix
DataCamp Building Response Models in R
BUILDING RESPONSE MODELS IN R
DataCamp Building Response Models in R
DataCamp Building Response Models in R
DataCamp Building Response Models in R
OBS: observation week SALES: volume sales PRICE: average unit price DISPLAY, COUPON, DISPLAYCOUPON: advertising, promotion activities
str(sales.data) 'data.frame': 124 obs. of 6 variables: $ OBS : int 1 2 3 4 5 6 7 8 9 10 ... $ SALES : num 22.6 22.9 80.6 85.1 81.9 ... $ PRICE : num 1.09 1.27 1.27 1.27 1.27 ... $ DISPLAY : int 0 0 0 0 0 0 0 0 0 0 ... $ COUPON : int 0 0 0 0 0 0 0 0 0 1 ... $ DISPLAYCOUPON: int 0 0 0 0 0 0 0 0 0 0 ...
DataCamp Building Response Models in R
mean(sales.data$SALES) 119.7319 min(sales.data$SALES) 11.66749 max(sales.data$SALES) 752.7219
DataCamp Building Response Models in R
BUILDING RESPONSE MODELS IN R
DataCamp Building Response Models in R
BUILDING RESPONSE MODELS IN R
DataCamp Building Response Models in R
DataCamp Building Response Models in R
DataCamp Building Response Models in R
linear.model <- lm(SALES ~ PRICE , data = sales.data) coef(linear.model) (Intercept) PRICE 274.2486 -134.3097
DataCamp Building Response Models in R
coef(linear.model)[1] + 0.95 * coef(linear.model)[2] 146.6544 coef(linear.model)[1] + 1.05 * coef(linear.model)[2] 133.2234
DataCamp Building Response Models in R
plot(SALES ~ PRICE, data = sales.data) abline(linear.model)
DataCamp Building Response Models in R
BUILDING RESPONSE MODELS IN R
DataCamp Building Response Models in R
BUILDING RESPONSE MODELS IN R
DataCamp Building Response Models in R
DataCamp Building Response Models in R
DataCamp Building Response Models in R
1 1
log.model <- lm(log(SALES) ~ PRICE, data = sales.data) coef(log.model) (Intercept) PRICE 5.0843983 -0.6622516
1
DataCamp Building Response Models in R
plot(log(SALES) ~ PRICE, data = sales.data) log.model <- lm(log(SALES) ~ PRICE, data = sales.data) abline(log.model)
DataCamp Building Response Models in R
BUILDING RESPONSE MODELS IN R