sMS_timeic-internal {sMSROC}R Documentation

sMS estimator for prognostic biomarkers and interval censoring

Description

Wrap function for computing the sMS estimator in prognosis scenarios under interval censorship.

Usage

sMS_timeic(marker, left, right, outcome, time, meth, grid, probs, all)

Arguments

marker

vector with the biomarker values.

left

vector containing the lower edges of the observed intervals.

right

vector with the upper edges of the observed intervals. The infinity is admissible as value (indicated as inf).

outcome

vector containing the condition of the individuals as positive, negative or censored at the time time.

time

point of time at which the sMSROC curve estimator will be computed.

meth

method for approximating the predictive model P(D|X=x).

  • “E”, allocates to each individual their own condition as positive or negative. Those whose condition is unknown at time time are dismissed.

  • “L”, for proportional hazards regression models taking into account the observation intervals (see Details sMSROC).

  • “S”, for proportional hazards regression models without taking into account the observation intervals (see Details sMSROC).

grid

grid size.

probs

vector with the probabilities from the predictive model when it is manually entered.

all

parameter indicating whether all probabilities given by the predictive model should be considered (value “T”) or just those corresponding to individuals whose condition as positive or negative is unknown (“F”). The default value is (“T”).

Details

This function gets the probabilities corresponding to the predictive model (first stage of the sMS ROC curve estimator). If they were not manually entered, the functions pred.mod.emp or pred.mod.timeic are called depending on the chosen meth. Then, it calls the function computeROC to compute the weighted empirical ROC curve estimator (second stage).

Value

The returned value is a list with the following components:

SE

vector with the weighted empirical estimator of the sensitivity.

SP

vector with the weighted empirical estimator of the specificity.

u

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

ROC curve approximated at each point of the vector u.

auc

area under the weighted empirical ROC curve estimator.

marker

vector with the ordered biomarker values.

outcome

vector with the condition of the individuals at time time as positive, negative or unknown.

probs

vector with the probabilities of the predictive model corresponding to each biomarker value.

See Also

pred.mod.emp, pred.mod.binout, computeROC, sMS.binout and sMS.timerc


[Package sMSROC version 0.1.2 Index]