Creates a matrix of weights and estimates to be used in estimation of the PTE within R.opt.event
WEIGHT(xob, deltaob, aob, n, t.0,t)Returns a matrix of weights and estimates to be used in estimation of the PTE within R.opt.event
numeric vector, the observed event time: X = min(T, C) where T is the time of the primary outcome, C is the censoring time
numeric vector of 0/1, the censoring indicator: D = I(T<C) where T is the time of the primary outcome, C is the censoring time
numeric vector of 0/1, indicating treatment group
sample size
landmark time of interest, \(t_0\)
time of interest for treatment effect.
Xuan Wang