如何從glm中提取aic? 我有以下代碼如何從glm中提取aic?
mod <- glm(RESPONSE~..., data=training, family=binomial(link="logit"))
summary(mod)
glm$aic
輸出:
glmfit$aic Error: object 'glmfit' not found glm.fit$aic Error in glm.fit$aic : object of type 'closure' is not subsettable glm$aic Error in glm$aic : object of type 'closure' is not subsettable aic(glm) Error: could not find function "aic"
Google? 「R extract aic glm」 – Henrik
'AIC(glm(vs〜mpg,binomial,mtcars))' – rawr
如果你的glm對象被命名爲mod,glm $ aic'將不會成功,但是mod $ aic將會 – scoa