全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
4983 2
2011-05-26
求R计算ROC临界值的置信区间的程序,我是R菜鸟,跪求!!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-12-30 17:16:01

pROC package:

ci()函数


#例子

data(aSAH)

# Syntax (response, predictor):

ci(aSAH$outcome, aSAH$s100b)

# With a roc object:

rocobj <- roc(aSAH$outcome,aSAH$s100b)

# Of an AUC

ci(rocobj)

ci(rocobj, of="auc")

# this is strictly equivalent to:

ci.auc(rocobj)

# Of thresholds, sp, se...

## Not run:

ci(rocobj,of="thresholds")

ci(rocobj,of="thresholds", thresholds=0.51)

ci(rocobj,of="thresholds", thresholds="all")

ci(rocobj, of="sp",sensitivities=c(.95, .9, .85))

ci(rocobj, of="se")

# Alternatively, you can get the CIdirectly from roc():

rocobj <- roc(aSAH$outcome,aSAH$s100b, ci=TRUE, of="auc")

rocobj$ci


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-1-2 18:48:49
好,学习了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群