比較殘差標準誤
另一個常用來評估模型擬合度的指標是殘差標準誤(RSE),它衡量殘差的典型大小。
在上一個練習中,你看到把兩個解釋變數都納入模型後,決定係數提高了。你覺得同時使用兩個解釋變數,會如何影響 RSE?
已提供 mdl_price_vs_conv、mdl_price_vs_age 與 mdl_price_vs_both;已載入 dplyr 與 broom。
本練習屬於課程
R 的迴歸分析中級
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
mdl_price_vs_conv %>%
# Get the model-level coefficients
___ %>%
# Pull out the RSE
___
# Get the RSE for mdl_price_vs_age
mdl_price_vs_age %>%
___
# Get the RSE for mdl_price_vs_both
mdl_price_vs_both %>%
___