【发布时间】:2015-02-19 10:55:13
【问题描述】:
我有一个逻辑回归模型(使用 R)作为
fit6 <- glm(formula = survived ~ ascore + gini + failed, data=records, family = binomial)
summary(fit6)
我正在使用pROC 包绘制 ROC 曲线并计算 6 个模型 fit1 到 fit6 的 AUC。
我已经通过这种方式绘制了一个 ROC。
prob6=predict(fit6,type=c("response"))
records$prob6 = prob6
g6 <- roc(survived~prob6, data=records)
plot(g6)
但是有没有一种方法可以将所有 6 条曲线的 ROC 组合在一个图中,并显示所有曲线的 AUC,如果可能的话还显示置信区间。
【问题讨论】:
标签: r logistic-regression roc auc