View source: R/PredictiveModels.R
pred_model_timerc-internal | R Documentation |
Estimation of the predictive model in prognosis scenarios under right censorship.
pred_model_timerc(marker, status, observed.time, outcome, time, meth)
marker |
vector with the biomarker values. |
status |
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. |
observed.time |
vector with the observed times for each subject. Notice that these values may be the event times or the censoring times. |
outcome |
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. |
meth |
method for approximating the predictive model
|
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, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/1467-9868.00125")}).
The returned value is a list with three components:
marker |
vector containing the ordered marker values. |
probs |
vector with the probabilities corresponding to each marker value estimated through the predictive model. |
outcome |
vector with the status of the subjects as positive, negative or censored at the considered time |
sMS_timerc
and sMSROC
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.