看板 R_Language 關於我們 聯絡資訊
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
andrew43: 在不清楚y1-y3是什麼之前並不能確定「合起來」可怎麼做 11/25 23:14
andrew43: 例如,y1-y3只是同受測者的隨機重覆測量嗎? 11/25 23:15
leo790124: 是的,重複觀測資料 11/26 08:33
andrew43: mixed model 大概這樣做 https://ideone.com/Se6pP7 11/26 10:56
andrew43: 不過這樣寫就差不多是把y1-3平均成應變數 11/26 15:28