Creates a matrix of weights and estimates to be used in estimation of the standard error of the PTE within resam
WEIGHT.p(xob, deltaob, aob, n, v, t.0, t)Returns a matrix of weights and estimates to be used in estimation of the PTE within resam
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
random exponential weight
landmark time of interest, \(t_0\)
time of interest for treatment effect.
Xuan Wang