drsurv {precmed} | R Documentation |
Doubly robust estimator of the average treatment effect with Cox model for survival data
Description
Doubly robust estimator of the average treatment effect between two treatments, which is the restricted mean time lost (RMTL) ratio of treatment 1 over treatment 0 for survival outcomes.
Usage
drsurv(
y,
d,
x.cate,
x.ps,
x.ipcw,
trt,
yf = NULL,
tau0,
surv.min = 0.025,
ps.method = "glm",
minPS = 0.01,
maxPS = 0.99,
ipcw.method = "breslow"
)
Arguments
y |
Observed survival or censoring time; vector of size |
d |
The event indicator, normally |
x.cate |
Matrix of |
x.ps |
Matrix of |
x.ipcw |
Matrix of |
trt |
Treatment received; vector of size |
yf |
Follow-up time, interpreted as the potential censoring time; vector of size |
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). |
ps.method |
A character value for the method to estimate the propensity score. Allowed values include one of:
|
minPS |
A numerical value (in [0, 1]) below which estimated propensity scores should be
truncated. Default is |
maxPS |
A numerical value (in (0, 1]) above which estimated propensity scores should be
truncated. Must be strictly greater than |
ipcw.method |
The censoring model. Allowed values are: |
Value
Return a list of 4 elements:
rmst1
: A numeric value of the estimated restricted mean survival time n the grouptrt = 1
.rmst0
: A numeric value of the estimated restricted mean survival time n the grouptrt = 0
.log.rmtl.ratio
: A numeric value of the estimated log rmtl ratio.log.hazard.ratio
: A numeric value of the estimated log hazard ratio.