小编dbc*_*fee的帖子

如何使用 pRoc 包进行 ROC 分析后获得 p 值?

对一组数据进行ROC分析后,如何计算p-value?通过同样的统计,我看到SPSS中可以输出p值。示例代码如下:

library(pROC)
data(aSAH)
head(aSAH)
#    gos6 outcome gender age wfns s100b  ndka
# 29    5    Good Female  42    1  0.13  3.01
# 30    5    Good Female  37    1  0.14  8.54
# 31    5    Good Female  42    1  0.10  8.09
# 32    5    Good Female  27    1  0.04 10.42
# 33    1    Poor Female  42    3  0.13 17.40
# 34    1    Poor   Male  48    2  0.10 12.75

(rr <- roc(aSAH$outcome, aSAH$s100b, plot=T))
# Setting levels: control = Good, case = Poor …
Run Code Online (Sandbox Code Playgroud)

r spss roc proc-r-package

4
推荐指数
1
解决办法
4349
查看次数

标签 统计

proc-r-package ×1

r ×1

roc ×1

spss ×1