R.q.event {SurrogateOutcome} | R Documentation |
Calculates the proportion of the treatment effect (the difference in restriced mean survival time at time t) explained by surrogate outcome information observed up to the landmark time
Description
Calculates the proportion of the treatment effect (the difference in restriced mean survival time at time t) explained by surrogate outcome information observed up to the landmark time; also provides standard error estimate and confidence interval.
Usage
R.q.event(xone, xzero, deltaone, deltazero, sone, szero, t, landmark, number = 40,
transform = FALSE, extrapolate = TRUE, std = FALSE, conf.int = FALSE,
weight.perturb = NULL, type = "np")
Arguments
xone |
numeric vector, observed event times for the primary outcome in the treatment group.
|
xzero |
numeric vector, observed event times for the primary outcome in the control group.
|
deltaone |
numeric vector, event/censoring indicators for the primary outcome in the treatment group.
|
deltazero |
numeric vector, event/censoring indicators for the primary outcome in the control group.
|
sone |
numeric vector, observed event times for the surrogate outcome in the treatment group.
|
szero |
numeric vector, observed event times for the surrogate outcome in the control group.
|
t |
time of interest for treatment effect.
|
landmark |
landmark time of interest, t0 .
|
number |
number of points for RMST calculation, default is 40.
|
transform |
TRUE or FALSE; indicates whether a transformation should be used, default is FALSE.
|
|
TRUE or FALSE; indicates whether local constant extrapolation should be used, default is FALSE.
|
std |
TRUE or FALSE; indicates whether standard error estimates should be provided, default is FALSE. Estimates are calculated using perturbation-resampling. Two versions are provided: one that takes the standard deviation of the perturbed estimates (denoted as "sd") and one that takes the median absolute deviation (denoted as "mad").
|
conf.int |
TRUE or FALSE; indicates whether 95% confidence intervals should be provided. Confidence intervals are calculated using the percentiles of perturbed estimates, default is FALSE. If this is TRUE, standard error estimates are automatically provided.
|
weight.perturb |
weights used for perturbation resampling.
|
type |
Type of estimate that should be provided; options are "np" for the nonparametric estimate or "semi" for the semiparametric estimate, default is "np".
|
Details
Let G∈{1,0}
be the randomized treatment indicator, T
denote the time of the primary outcome of interest, and S
denote the time of the surrogate outcome. We use potential outcomes notation such that T(G)
and S(G)
denote the respective times of the primary and surrogate outcomes under treatment G, for G∈{1,0}
. In the absence of censoring, we only observe (T,S)=(T(1),S(1))
or (T(0),S(0))
for each individual depending on whether G=1
or 0
. Due to censoring, data consist of n=n1+n0
independent observations {Xgi,δgi,I(Sgi<t0)I(Xgi>t0),Sgi∧t0I(Xgi>t0),i=1,...,ng,g=1,0}
, where Xgi=Tgi∧Cgi
, δgi=I(Tgi<Cgi)
, Cgi
denotes the censoring time, Tgi
denotes the time of the primary outcome, Sgi
denotes the time of the surrogate outcome, {(Tgi,Cgi,Sgi),i=1,...,ng}
are identically distributed within treatment group, and t0
is the landmark time of interest.
We define the treatment effect as the difference in restricted mean survival time up to a fixed time t
under treatment 1 versus under treatment 0,
Δ(t)=E{T(1)∧t}−E{T(0)∧t}
where ∧
indicates the minimum. To define the proportion of treatment effect explained by the surrogate outcome information, let
Qt0(g)=(Qt01,Qt02)′={S(g)∧t0I(T(g)>t0),T(g)I(T(g)≤t0)}′,g=1,0
and define the residual treatment effect after accounting for the treatment effect on the surrogate outcome information as:
ΔQ(t,t0)=Pt0,2(0)∫0t0ϕ1(t∣t0,s)dF0(s)+Pt0,3(0)ψ1(t∣t0)−P(T(0)>t0)ν0(t∣t0)
where Pt0,2(0)=P(T(0)>t0,S(0)<t0)
and Pt0,3(0)=P(T(0)>t0,S(0)>t0)
, ψ1(t∣t0)=E(T(1)∧t∣T(1)>t0,S(1)>t0)
,
ϕ1(t∣t0,s)=E(T(1)∧t∣T(1)>t0,S(1)=s),ν0(t∣t0)=E(T(0)∧t∣T(0)>t0)
, and F0(⋅∣t0)
is the cumulative distribution function of S(0)
conditional on T(0)>t0
and S(0)<t0
. Then, the proportion of treatment effect on the primary outcome that is explained by surrogate information up to t0
, Qt0
, can be expressed as a contrast between Δ(t)
and ΔQ(t,t0)
:
RQ(t,t0)={Δ(t)−ΔQ(t,t0)}/Δ(t)=1−ΔQ(t,t0)/Δ(t).
The quantity Δ(t)
is estimated using inverse probability of censoring weights:
Δ^(t)=n1−1∑i=1n1M^1i(t)−n0−1∑i=1n0M^0i(t)
where M^gi(t)=I(Xgi>t)t/W^gC(t)+I(Xgi<t)Xgiδgi/W^gC(Xgi)
and W^gC(t)
is the Kaplan-Meier estimator of P(Cgi≥t).
The residual treatment effect ΔQ(t,t0)
can be estimated nonparametrically or semi-parametrically. For nonparametric estimation, ψ1(t∣t0)
is estimated by ψ^1(t∣t0)=∑i=1n1∑i=1n1I(S1i>t0,X1i>t0)W^1C(t0)I(S1i>t0,X1i>t0)M^1i(t)
, and ϕ1(t∣t0,s)=E(T(1)∧t∣X(1)>t0,S(1)=s)
is estimated using a
nonparametric kernel Nelson-Aalen estimator for Λ1(t∣t0,s),
the cumulative hazard function of T(1)
conditional on S(1)=s
and T(1)>t0,
as
ϕ^1(t∣t0,s)=t0+∫t0texp{−Λ^1(t∣t0,s)}dt,
where
Λ^1(t∣t0,s)=∫t0t∑i=1n1I(X1i>t0,S1i<t0)Kh{γ(S1i)−γ(s)}Y1i(z)∑i=1n1I(X1i>t0,S1i<t0)Kh{γ(S1i)−γ(s)}dN1i(z),
is a consistent estimate of Λ1(t∣t0,s),
Y1i(t)=I(X1i≥t)
, N1i(t)=I(X1i≤t)δi,K(⋅)
is a smooth symmetric density function, Kh(x)=K(x/h)/h
, γ(⋅)
is a given monotone transformation function, and h=O(n1−η)
is a specified bandwidth with η∈(1/2,1/4)
. Finally, we let
ν^0(t∣t0)=∑i=1n0∑i=1n0I(X0i>t0)W^0C(t0)I(X0i>t0)M^0i(t).
We then estimate ΔQ(t,t0)
as Δ^Q(t,t0)
defined as
n0−1∑i=1n0{W^0C(t0)It0,2(X0i,S0i)ϕ^1(t∣t0,S0i)+It0,3(X0i,S0i)ψ^1(t∣t0)−It0(X0i)ν^(t∣t0)}
where It0,2(x,s)=I(x>t0,s<t0)
and It0,3(x,s)=I(x>t0,s>t0)
and It0(x)=I(x>t0)
and thus, R^Q(t,t0)=1−Δ^Q(t,t0)/Δ^(t).
For the semi-parametric estimate, ϕ^1(t∣t0,s)
is replaced with an estimate obtained using a landmark Cox proportional hazards model
P(T(1)>t∣T(1)>t0,S(1)<t0,S(1))=exp{−Λ0(t∣t0)exp(β0S(1))}
where Λ0(t∣t0)
is the unspecified baseline cumulative hazard among Ωt0={T(1)>t0,S(1)<t0}
and β0
is unknown. That is, let ϕ~1(t∣t0,s)=t0+∫t0texp{−Λ^0(t∣t0)exp(β^s)}dt,
where β^
is estimated by fitting a Cox model to the subpopulation Ωt0
with a single predictor S
and Λ^0(⋅∣t0)
is the corresponding Breslow estimator. Then the semiparametric estimator for
ΔQ(t,t0)
is Δ~Q(t,t0)
defined as
n0−1∑i=1n0{W^0C(t0)It0,2(X0i,S0i)ϕ~1(t∣t0,S0i)+It0,3(X0i,S0i)ψ^1(t∣t0)−It0(X0i)ν^(t∣t0)}
and R~Q(t,t0)=1−Δ~Q(t,t0)/Δ^(t).
Value
A list is returned:
delta |
the estimate, Δ^(t) , described in delta.estimate documentation.
|
delta.q |
the estimate, Δ^Q(t,t0) , described above.
|
R.q |
the estimate, R^Q(t,t0) , described above.
|
delta.sd |
the standard error estimate of Δ^(t) ; if std = TRUE or conf.int = TRUE.
|
delta.mad |
the standard error estimate of Δ^(t) using the median absolute deviation; if std = TRUE or conf.int = TRUE.
|
delta.q.sd |
the standard error estimate of Δ^Q(t,t0) ; if std = TRUE or conf.int = TRUE.
|
delta.q.mad |
the standard error estimate of Δ^Q(t,t0) using the median absolute deviation; if std = TRUE or conf.int = TRUE.
|
R.q.sd |
the standard error estimate of R^Q(t,t0) ; if std = TRUE or conf.int = TRUE.
|
R.q.mad |
the standard error estimate of R^Q(t,t0) using the median absolute deviation; if std = TRUE or conf.int = TRUE.
|
conf.int.delta |
a vector of size 2; the 95% confidence interval for Δ^(t) based on sample quantiles of the perturbed values; if conf.int = TRUE.
|
conf.int.delta.q |
a vector of size 2; the 95% confidence interval for Δ^Q(t,t0) based on sample quantiles of the perturbed values; if conf.int = TRUE.
|
conf.int.R.q |
a vector of size 2; the 95% confidence interval for R^Q(t,t0) based on sample quantiles of the perturbed values; if conf.int = TRUE.
|
Author(s)
Layla Parast
References
Parast L, Tian L, and Cai T (2020). Assessing the Value of a Censored Surrogate Outcome. Lifetime Data Analysis, 26(2):245-265.
Parast, L and Cai, T (2013). Landmark risk prediction of residual life for breast cancer survival. Statistics in Medicine, 32(20), 3459-3471.
Examples
data(ExampleData)
names(ExampleData)
R.q.event(xone = ExampleData$x1, xzero = ExampleData$x0, deltaone = ExampleData$delta1,
deltazero = ExampleData$delta0, sone = ExampleData$s1, szero = ExampleData$s0, t = 5,
landmark=2, type = "np")
R.q.event(xone = ExampleData$x1, xzero = ExampleData$x0, deltaone = ExampleData$delta1,
deltazero = ExampleData$delta0, sone = ExampleData$s1, szero = ExampleData$s0, t = 5,
landmark=2, type = "semi")
R.q.event(xone = ExampleData$x1, xzero = ExampleData$x0, deltaone = ExampleData$delta1,
deltazero = ExampleData$delta0, sone = ExampleData$s1, szero = ExampleData$s0, t = 5,
landmark=2, type = "np", std = TRUE, conf.int = TRUE)
[Package
SurrogateOutcome version 1.1
Index]