版本问题
###xlsx包加载报错
###主要是Java版本(32和64)的问题,要与R版本保持一致才行 ;
###R需要是32或64位的,安装过程可选;Java版本需要是对应的;然后进行如下设置即可;
Sys.setenv(JAVA_HOME='C:\\Program Files\\Java\\jre1.8.0_251')
DecisionCurve装包失败
- 包名已改为
rmda
- 报错
na.delete function
;安装Hmisc
包解决;
library(rmda)
library(Hmisc)
data(dcaData)
baseline.model <- decision_curve(Cancer~Age + Female + Smokes,
data = dcaData, thresholds = seq(0, .4, by = .01), study.design = 'cohort', bootstraps = 10)
plot_decision_curve(baseline.model, curve.names = "baseline model")