data(HCC)
# ROC curve for gene 18384097 to identify tumor by considering 4 different transformations:
X <- HCC$cg18384097; D <- HCC$tumor
## 1. Ordinary cubic polynomial formula for binary logistic regression
hROC(X, D)
## 2. Linear tail-restricted cubic splines for binary logistic regression
hROC(X, D, formula.lrm = "D ~ rcs(X,8)")
## 3. Overfitting transformation for this particular sample
hROC(X, D, type = "overfitting")
## 4. Optimal transformation in terms of likelihood ratio
## by kernel density estimation with bandwidth 3
hROC(X, D, type = "kernel", kernel.h = 3)
Run the code above in your browser using DataLab