R.s.surv.estimate {Rsurrogate} | R Documentation |
Calculates the proportion of treatment effect explained by the surrogate marker information measured at a specified time and primary outcome information up to that specified time
Description
This function calculates the proportion of treatment effect on the primary outcome explained by the surrogate marker information measured at and primary outcome information up to
. 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. The user can also request an estimate of the incremental value of surrogate marker information.
Usage
R.s.surv.estimate(xone, xzero, deltaone, deltazero, sone, szero, t,
weight.perturb = NULL, landmark, extrapolate = FALSE, transform = FALSE,
conf.int = FALSE, var = FALSE, incremental.value = FALSE, approx = T)
Arguments
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. |
sone |
numeric vector; surrogate marker measurement at |
szero |
numeric vector; surrogate marker measurement at |
t |
the time of interest. |
weight.perturb |
weights used for perturbation resampling. |
landmark |
the landmark time |
extrapolate |
TRUE or FALSE; indicates whether the user wants to use extrapolation. |
transform |
TRUE or FALSE; indicates whether the user wants to use a transformation for the surrogate marker. |
conf.int |
TRUE or FALSE; indicates whether a 95% confidence interval for delta is requested, default is FALSE. |
var |
TRUE or FALSE; indicates whether a variance estimate is requested, default is FALSE. |
incremental.value |
TRUE or FALSE; indicates whether the user would like to see the incremental value of the surrogate marker information, 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 be the binary treatment indicator with
for treatment and
for control and we assume throughout that subjects are randomly assigned to a treatment group at baseline. Let
and
denote the time of the primary outcome of interest, death for example, under the treatment and under the control, respectively. Let
and
denote the surrogate marker measured at time
under the treatment and the control, respectively.
The residual treatment effect is defined as
where is the cumulative distribution function of
conditional on
and
. The proportion of treatment effect explained by the surrogate marker information measured at
and primary outcome information up to
, which we denote by
, can be expressed using a contrast between
and
:
The definition and estimation of is described in the delta.surv.estimate documentation.
Due to censoring, our data consist of observations
from the treatment group
and
observations
from the control group
where
,
,
denotes the censoring time, and
denotes the surrogate marker information measured at time
, for
, for individual
. Note that if
, then
should be NA (not available).
To estimate , we use a nonparametric kernel Nelson-Aalen estimator to estimate
as
, where
is a consistent estimate of is a smooth symmetric density function,
is a given monotone transformation function, and
is a specified bandwidth. To obtain an appropriate
we first use bw.nrd to obtain
; and then we let
with
.
Since , we empirically estimate
using all subjects with
as
Subsequently, we construct an estimator for as
where is the Kaplan-Meier estimator of survival for censoring for
Finally, we estimate
as
Variance estimation and confidence interval construction are performed using perturbation-resampling. Specifically, let be
independent copies of a positive random variables
from a known distribution with unit mean and unit variance. Let
In this package, we use weights generated from an Exponential(1) distribution and use . The variance of
is obtained as the empirical variance of
. Variance estimates for
and
are calculated similarly. We construct two versions of the
confidence interval for each estimate: one based on a normal approximation confidence interval using the estimated variance and another taking the 2.5th and 97.5th empirical percentile of the perturbed quantities. In addition, we use Fieller's method to obtain a third confidence interval for
as
where and
is the
th percentile of
where .
Since the definition of considers the surrogate information as a combination of both
information and
information up to
, a logical inquiry would be how to assess the incremental value of the
information in terms of the proportion of treatment effect explained, when added to
information up to
. The proportion of treatment effect explained by
information up to
only is denoted as
and is described in the documentation for R.t.surv.estimate. The incremental value of
information is defined as:
For estimation of , see documentation for R.t.surv.estimate. The quantity
is then estimated by
. Perturbation-resampling is used for variance estimation and confidence interval construction for this quantity, similar to the other quantities in this package.
Note that if the observed supports for S are not the same, then for
outside the support of
may return NA (depending on the bandwidth). If extrapolation = TRUE, then the
values for these surrogate values are set to the closest non-NA value. If transform = TRUE, then
and
are transformed such that the new transformed values,
and
are defined as:
for
where
is the cumulative distribution function for a standard normal random variable, and
and
are the sample mean and standard deviation, respectively, of
.
Value
A list is returned:
delta |
the estimate, |
delta.s |
the estimate, |
R.s |
the estimate, |
delta.var |
the variance estimate of |
delta.s.var |
the variance estimate of |
R.s.var |
the variance estimate of |
conf.int.normal.delta |
a vector of size 2; the 95% confidence interval for |
conf.int.quantile.delta |
a vector of size 2; the 95% confidence interval for |
conf.int.normal.delta.s |
a vector of size 2; the 95% confidence interval for |
conf.int.quantile.delta.s |
a vector of size 2; the 95% confidence interval for |
conf.int.normal.R.s |
a vector of size 2; the 95% confidence interval for |
conf.int.quantile.R.s |
a vector of size 2; the 95% confidence interval for |
conf.int.fieller.R.s |
a vector of size 2; the 95% confidence interval for |
delta.t |
the estimate, |
R.t |
the estimate, |
incremental.value |
the estimate, |
delta.t.var |
the variance estimate of |
R.t.var |
the variance estimate of |
incremental.value.var |
the variance estimate of |
conf.int.normal.delta.t |
a vector of size 2; the 95% confidence interval for |
conf.int.quantile.delta.t |
a vector of size 2; the 95% confidence interval for |
conf.int.normal.R.t |
a vector of size 2; the 95% confidence interval for |
conf.int.quantile.R.t |
a vector of size 2; the 95% confidence interval for |
conf.int.fieller.R.t |
a vector of size 2; the 95% confidence interval for |
conf.int.normal.iv |
a vector of size 2; the 95% confidence interval for |
conf.int.quantile.iv |
a vector of size 2; the 95% confidence interval for |
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". If the observed support of the surrogate marker for the control group is outside the observed support of the surrogate marker for the treatment group, the user will receive the following message: "Warning: observed supports do not appear equal, may need to consider a transformation or extrapolation".
Author(s)
Layla Parast
References
Parast, L., Cai, T., & Tian, L. (2017). Evaluating surrogate marker information using censored data. Statistics in Medicine, 36(11), 1767-1782.
Examples
data(d_example_surv)
names(d_example_surv)