為每種競標型態建模
你剛剛看到,在 eBay 拍賣中,Palm Pilot 的起標價似乎不影響最終成交價。現在來看看,當你分別對三種競標型態(3 天、5 天、7 天)建模時會發生什麼事。
auctions 已可使用;dplyr 與 ggplot2 已載入。
本練習屬於課程
R 的迴歸分析中級
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Fit linear regression of price vs. opening bid and auction type, with an interaction.
mdl_price_vs_both <- ___
# See the result
mdl_price_vs_both