Calculates the proportion of treatment effect explained by the primary outcome information up to a specified time
Calculates the proportion of treatment effect explained by the primary outcome information up to a specified time
This function calculates the proportion of treatment effect on the primary outcome explained by the treatment effect on the primary outcome up to t0. The user can also request a variance estimate, estimated using perturbating-resampling, and a 95% confidence interval. If a confidence interval is requested three versions are provided: a normal approximation based interval, a quantile based interval and Fieller's confidence interval, all using perturbation-resampling.
xone: numeric vector, the observed event times in the treatment group, X = min(T,C) where T is the time of the primary outcome and C is the censoring time.
xzero: numeric vector, the observed event times in the control group, X = min(T,C) where T is the time of the primary outcome and C is the censoring time.
deltaone: numeric vector, the event indicators for the treatment group, D = I(T<C) where T is the time of the primary outcome and C is the censoring time.
deltazero: numeric vector, the event indicators for the control group, D = I(T<C) where T is the time of the primary outcome and C is the censoring time.
t: the time of interest.
weight.perturb: weights used for perturbation resampling.
landmark: the landmark time t0 or time of surrogate marker measurement.
var: TRUE or FALSE; indicates whether a variance estimate for delta is requested, default is FALSE.
conf.int: TRUE or FALSE; indicates whether a 95% confidence interval for delta is requested, default is FALSE.
approx: TRUE or FALSE indicating whether an approximation should be used when calculating the probability of censoring; most relevant in settings where the survival time of interest for the primary outcome is greater than the last observed event but before the last censored case, default is TRUE.
Details
Let G be the binary treatment indicator with G=1 for treatment and G=0 for control and we assume throughout that subjects are randomly assigned to a treatment group at baseline. Let T denote the time of the primary outcome of interest, death for example. We use potential outcomes notation such that T(g) denotes the time of the primary outcome under treatment G=g. The proportion of treatment effect explained by T observed up to t0 only is RT(t,t0)=1−ΔT(t,t0)/Δ(t) where
To estimate RT(t,t0), we use the estimator R^T(t,t0)=1−Δ^T(t,t0)/Δ^(t) where Δ^T(t,t0)=ϕ^0(t0)ϕ^1(t)/ϕ^1(t0)−ϕ^0(t) and ϕ^g(u)=ng−1∑i=1ngW^gC(u)I(Xgi>u) for g=1,0 where WgC(⋅) is the Kaplan-Meier estimator of survival for censoring for g=1,0.
Returns
A list is returned: - delta: the estimate, Δ^(t), described in delta.estimate documentation.
delta.t: the estimate, Δ^T(t,t0), described above.
R.t: the estimate, R^T(t,t0), described above.
delta.var: the variance estimate of Δ^(t); if var = TRUE or conf.int = TRUE.
delta.t.var: the variance estimate of Δ^T(t,t0); if var = TRUE or conf.int = TRUE.
R.t.var: the variance estimate of R^T(t,t0); if var = TRUE or conf.int = TRUE.
conf.int.normal.delta: a vector of size 2; the 95% confidence interval for Δ^(t) based on a normal approximation; if conf.int = TRUE.
conf.int.quantile.delta: a vector of size 2; the 95% confidence interval for Δ^(t) based on sample quantiles of the perturbed values, described above; if conf.int = TRUE.
conf.int.normal.delta.t: a vector of size 2; the 95% confidence interval for Δ^T(t,t0) based on a normal approximation; if conf.int = TRUE.
conf.int.quantile.delta.t: a vector of size 2; the 95% confidence interval for Δ^T(t,t0) based on sample quantiles of the perturbed values, described above; if conf.int = TRUE.
conf.int.normal.R.t: a vector of size 2; the 95% confidence interval for R^T(t,t0) based on a normal approximation; if conf.int = TRUE.
conf.int.quantile.R.t: a vector of size 2; the 95% confidence interval for R^T(t,t0) based on sample quantiles of the perturbed values, described above; if conf.int = TRUE.
conf.int.fieller.R.t: a vector of size 2; the 95% confidence interval for R^T(t,t0) based on Fieller's approach, described above; if conf.int = TRUE.
References
Parast, L., Cai, T., & Tian, L. (2017). Evaluating surrogate marker information using censored data. Statistics in Medicine, 36(11), 1767-1782.
Note
If the treatment effect is not significant, the user will receive the following message: "Warning: it looks like the treatment effect is not significant; may be difficult to interpret the residual treatment effect in this setting".