3914 1

[问答] R软件做ROC曲线如何提高灵敏度和特异度小数位数 [推广有奖]

  • 2关注
  • 0粉丝

已卖:957份资源

大专生

90%

还不是VIP/贵宾

-

威望
0
论坛币
7994 个
通用积分
34.5742
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
3243 点
帖子
20
精华
0
在线时间
92 小时
注册时间
2014-5-18
最后登录
2024-5-19

楼主
签名还在酝酿中 学生认证  发表于 2016-12-25 17:00:58 |AI写论文
100论坛币
setwd("D:\\R") #设置数据所在路径#
library(pROC)
data<-as.data.frame(read.csv("data.csv",header = T))
datam<-data[data$SEX==1,]
dataf<-data[data$SEX==2,]
roc(datam$Hypertension,datam$BMI,plot=T,print.thres=T, print.thres.digits=4,reuse.auc=T,axes=T,
          legacy.axes=T,print.auc=T)
上面是所运行的程序,如何提高图片结果的小数位数,即将3位提高到4位。

关键词:ROC曲线 如何提高 灵敏度 r软件 ROC 灵敏度 如何 软件

沙发
zhangyangsmith 发表于 2017-1-5 23:34:57
Will it work if you save the results of the "roc" function call and then write the sensitivity and specifity on the plot using "text"?

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-20 16:26