用階層模型預測市佔

R 的行銷選擇模型

Elea McDonnell Feit

Assistant Professor of Marketing, Drexel University

含相關性的階層模型

m10 <- mlogit(choice ~ 0 + seat + trans + convert + price, 
              data = sportscar, 
              rpar = myrpar, panel = TRUE, correlation = TRUE)

cor.mlogit(m10)
                 seat2      seat4 transmanual convertyes      price
seat2        1.0000000 -0.0007873  -0.5779923  0.6584917 -0.6665061
seat4       -0.0007873  1.0000000   0.2118747 -0.2057497  0.5457144
transmanual -0.5779923  0.2118747   1.0000000 -0.7203588  0.2832574
convertyes   0.6584917 -0.2057497  -0.7203588  1.0000000 -0.3387832
price       -0.6665061  0.5457144   0.2832574 -0.3387832  1.0000000
R 的行銷選擇模型

要預測市佔的產品

prod
  seat  trans convert price
1    2 manual      no    35
2    2   auto      no    30
prod.coded
  seat2 seat4 transmanual convertyes price
1     1     0           1          0    35
2     1     0           0          0    30
R 的行銷選擇模型

階層模型的市佔預測

mean <- m10$coef[1:5]   # Hard coded
Sigma <- cov.mlogit(m10)

share <- matrix(NA, nrow = 1000, ncol = nrow(prod.coded)) for (i in 1:1000) {
coef <- mvrnorm(1, mu = mean, Sigma = Sigma)
utility <- prod.coded %*% coef
share[i,] <- exp(utility) / sum(exp(utility))
}
cbind(colMeans(share), prod)
  colMeans(share) seat  trans convert price
1       0.1279492    2 manual      no    35
2       0.8720508    2   auto      no    30
R 的行銷選擇模型

一起來練習吧!

R 的行銷選擇模型

Preparing Video For Download...