Estimation of the predictive model in prognosis scenarios under right censorship.
pred_model_timerc(marker, status, observed.time, outcome, time, meth)The returned value is a list with three components:
vector containing the ordered marker values.
vector with the probabilities corresponding to each marker value estimated through the predictive model.
vector with the status of the subjects as positive, negative or censored at the considered time time.
vector with the biomarker values.
numeric response vector. The highest value is assumed to stand for the subjects having the event under study. The lowest value, for those who do not. Any other value will not be considered.
vector with the observed times for each subject. Notice that these values may be the event times or the censoring times.
vector with the status of the subjects as positive, negative or censored (unknown) at the considered time time.
point of time at which the sMS ROC curve estimator will be computed.
method for approximating the predictive model \(P(D|X=x)\). The options are:
``L'', for proportional hazards regression models (see Details).
``S'', for smooth models (see Details).
If meth = ``L'', the event times are assumed to come from a Cox proportional hazards regression model:
$$ P (T \leq t \;|\; X=x) = 1 - \exp \{ - \Delta_0(t) \cdot \exp \{ \beta_0 + \beta_1 \cdot \log(x)\}\},$$ where \(\Delta_0(\cdot)\) is the baseline hazard function and \(\beta_0, \beta_1 \in {\cal R}\).
If meth = ``S'', the approximation is done by $$P (T\leq t \;|\; X=x) = 1 - \exp \{ - \Delta_0(t) \cdot \exp \{ s(x)\}\} $$ being \(s(\cdot)\) the smooth function (penalized splines, tools:::Rd_expr_doi("10.1111/1467-9868.00125")).
sMS_timerc and sMSROC