ipcw.surv {precmed} | R Documentation |
Probability of being censored
Description
Probability of being censored which is used to correct the effect of right censoring.
Usage
ipcw.surv(
y,
d,
x.ipcw,
yf = NULL,
ipcw.method = "breslow",
tau0,
surv.min = 0.025
)
Arguments
y |
Observed survival or censoring time; vector of size |
d |
The event indicator, normally |
x.ipcw |
Matrix of |
yf |
Follow-up time, interpreted as the potential censoring time; vector of size |
ipcw.method |
The censoring model. Allowed values are: |
tau0 |
The truncation time for defining restricted mean time lost. |
surv.min |
Lower truncation limit for probability of being censored (positive and very close to 0). |
Value
A vector of size n
with the estimated probabilities Pr(C > min(y, tau0) | x.ipcw)