全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
3815 1
2016-12-25
悬赏 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位。

二维码

扫码加我 拉你入群

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

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

全部回复
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"?
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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