作者boshings (bo)
看板Statistics
標題[程式] R如何畫殘差分析圖
時間Thu May 7 01:08:48 2015
[軟體程式類別]:
R
[程式問題]:
資料處理、迴歸
[軟體熟悉度]:
低
[問題敘述]:
使用LM函數 跑迴歸 可以用plot函數 畫出殘差圖
使用PLM函數 跑panel data資料 如何畫出殘差圖?
[程式範例]:
f=lm(d~c,data=a)
plot(f) 可畫出殘差圖
-----------------
da=plm.data(a,index=c('a','b'))
f=plm(d~c, effect='twoways',model='within',data=da)
plot(f) 無法畫出殘差圖
-----------------------------------------------------------------------------
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.228.126.89
※ 文章網址: https://webptt.com/m.aspx?n=bbs/Statistics/M.1430932131.A.828.html
※ 編輯: boshings (36.228.126.89), 05/07/2015 01:09:50
※ 編輯: boshings (36.228.126.89), 05/07/2015 01:33:42
1F:→ celestialgod: plm:::plot.plm沒有畫殘差圖,要就自己畫 05/07 02:20
2F:→ celestialgod: plot(predict(f), resid(f)) 05/07 02:22
3F:→ boshings: 謝謝C大 05/07 23:24