WGT.CEN | R Documentation |
Calculate the weights accounting for missing binary outcomes due to censoring.
WGT.CEN(Ti, Di, t0, Vii.ptb = NULL)
Ti |
a vector of censored event times. |
Di |
a vector of binary values (1 or 0) indicating whether the true event time is observed. |
t0 |
a numerical value which is the prediction time period, used for creating the binary outcome status. The value is 1 if the event time is smaller than t0; otherwise, it is 0. |
Vii.ptb |
a vector of perturbation variables. The default is |
If Vii.ptb=NULL
, it returns a single-column matrix which includes the censoring weights; otherwise, it returns a matrix with the first column being the censoring weights and the remaining columns being their perturbed counterparts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.