[問題] [R] 請教幾個有關 log regression 問題
我用R跑出了一個報表
-------------------------------------------------
Model
Df Deviance Resid. Df Resid. Dev
NULL 5 18.99092
SBP1 1 0.35031 4 18.64061
SBP2 1 16.13339 3 2.50721
-------------------------------------------------
deviance :
up to a constant, minus twice the maximized log-likelihood.
Where sensible, the constant is chosen so that a saturated model has deviance zero.
上面這個是我找到有關deviance的解釋
想請問各位高手
deviance值是等於兩個model的-2logL的值相減
用來判斷模型相對好壞
可是報表只有一個model
為什麼每個因子都會有一個Dev值呢?
---------------------------------------
還有這個模型的-2logL值
是不是等於 這三個Dev值相加 呀?
還是要用其它的指令?
----------------------------------------
翻書翻了好久,還是想不出來
希望有人可以幫我解開疑惑...
謝謝您
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.37.57