
Doubly robust estimators of the coefficients in the two regression
Source:R/CATE_surv.R
onearmsurv.dr.RdDoubly robust estimators of the coefficients in the two regression
Arguments
- ynew
Truncated survival or censoring time; vector of size
n.- dnew
The event indicator after truncation,
1 = event or censored after truncation, 0 = censored before truncation; vector of sizen.- trt
Treatment received; vector of size
nwith treatment coded as 0/1.- x.cate
Matrix of
p.catebaseline covariates specified in the outcome model; dimensionnbyp.cate.- tau0
The truncation time for defining restricted mean time lost.
- weightsurv
Estimated inverse probability of censoring weights with truncation for all observations; vector of size
n.- ps
Estimated propensity scores for all observations; vector of size
n- f.predictor
Initial prediction of the outcome (restricted mean time loss) conditioned on the covariates
x.catefor one treatment groupr;mu_r(x.cate), step 1 in the two regression; vector of sizen