drsurv | R Documentation |
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.
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"
)
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: |
Return a list of 4 elements:
rmst1
: A numeric value of the estimated restricted mean survival time n the group trt = 1
.
rmst0
: A numeric value of the estimated restricted mean survival time n the group trt = 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.