是做的R语言nomgram校准取消,不知道为啥只有两个点,一个线
2条回答 默认 最新
- ilmss 2022-08-26 01:14关注
fit1 <- lrm(formula1, data = mydata, x=TRUE,y=TRUE) cal1 <- calibrate(fit1, method = "boot", B=1000) plot(cal1, xlim = c(0,1), xlab = "Predicted Probability", ylab = "Observed Probability", legend = FALSE, subtitles = FALSE) abline(0,1,col = "black",lty = 2,lwd = 2) lines(cal1[,c("predy","calibrated.orig")], type = "l",lwd = 2,col="red",pch =16) lines(cal1[,c("predy","calibrated.corrected")], type = "l",lwd = 2,col="green",pch =16) legend(0.55,0.35, c("Apparent","Ideal","Bias-corrected"), lty = c(2,1,1), lwd = c(2,1,1), col = c("black","red","green"), bty = "n") # "o"为加边框
解决 无用评论 打赏 举报
悬赏问题
- ¥20 plant simulation与python com接口实时数据交互
- ¥15 有关汽车的MC9S12XS128单片机实验
- ¥15 求c语言动态链表相关课程有偿,或能将这块知识点讲明白
- ¥15 FLKT界面刷新异常
- ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
- ¥50 单细胞测序拟时序分析
- ¥50 运行springboot项目报错
- ¥15 FTP 站点对站点传输失败
- ¥15 宝塔面板一键迁移使用不了
- ¥15 求一个按键录像存储到内存卡的ESP32CAM代码