[問題] 有重複觀測值的回歸該如何寫
x1 x2 x3 x4 y1 y2 y3
-1 -1 -1 -1 28 27.1 26.2
-1 -1 1 1 46.3 43.5 46.5
-1 1 -1 1 21.9 21 20.1
-1 1 1 -1 52.9 53.7 52
1 -1 -1 1 75 73.1 74.3
1 -1 1 -1 127.7 126.9 128.7
1 1 -1 -1 86.2 86.5 87
1 1 1 1 195 195.9 195.7
想請益Fit a first-order regression model to the data and conduct the residual
analysis.
該如何做
我目前只有會分開做,不知道是否需要合起來?
lm.table <- lm(y1 ~ x1+x2+x3+x4 )
summary(lm.table)
plot(lm.table513)
還是要做anova??
請教大大,謝謝。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 122.121.15.86
※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1543149425.A.FE0.html
→
11/25 23:14,
6年前
, 1F
11/25 23:14, 1F
→
11/25 23:15,
6年前
, 2F
11/25 23:15, 2F
→
11/26 08:33,
6年前
, 3F
11/26 08:33, 3F
→
11/26 10:56,
6年前
, 4F
11/26 10:56, 4F
→
11/26 15:28,
6年前
, 5F
11/26 15:28, 5F
R_Language 近期熱門文章
PTT數位生活區 即時熱門文章