ROC | R Documentation |
To estimate the ROC curve and its summary statistics including the AUC, Youden index, and optimal cutoff point based on a single biomarker by eight differet methods. The default is the Bernstein polynomial approach in Hu et al. (2022), which is developed under the likelihood ratio ordering assumption.
ROC(x, y, method = "BP", nss = 10^4)
x |
vector contains the sample of biomarkers from the "healthy" group |
y |
vector contains the sample of biomarkers from the "diseased" group |
method |
the method to estimate ROC curve and its summary statistics. It can be "BP","Box-Cox","ZL","ECDF","LZL","MNLE","Kernel",or "MSLE". |
nss |
control the number of point estimates of the ROC curve in the range [0,1], default is 10^4. |
The detail for each method is provided in Hu et al. (2022) or https://github.com/Dingding-Hu/BPLR-package.
x=rnorm(100,10,1)
y=rnrom(100,12,1)
ROC(x,y,method="BP")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.