Computes the weighted empirical ROC curve estimator associated to the input biomarker.
compute_ROC(marker, probs, grid)The returned value is a list with the following components:
vector with the weighted empirical estimator of the sensitivity.
vector with the weighted empirical estimator of the specificity.
vector containing the points between 0 and 1 at which the ROC curve estimator will be computed. Its size is determined by the grid parameter.
ROC curve approximated at each point of the vector u.
area under the weighted empirical ROC curve estimator.
vector with the ordered biomarker values.
vector with the probabilities of the predictive model corresponding to each biomarker value.
vector with the biomarker values.
vector containing the probabilities corresponding to the predictive model.
grid size.
This function computes the weighted empirical estimators for the sensitivity (SE) and specificity (SP) using as weights the probabilities given by the predictive model. Then, the ROC curve is approximated through linear interpolation of 1 - SP and SE and computed at a partition of the \([0,1]\) interval of size grid.
sMSbinout, sMStimerc and sMStimeic