design.study {SurrogateTest} | R Documentation |
Power and sample size calculation for designing a future study
Description
Power and sample size calculation for designing a future study
Usage
design.study(Axzero, Adeltazero, Aszero, Axone = NULL, Adeltaone = NULL, Asone =
NULL, delta.ea = NULL, psi = NULL, R.A.given = NULL, t, landmark, extrapolate = T,
adjustment = F, n = NULL, power = NULL, pi.1 = 0.5, pi.0 = 0.5, cens.rate, transform = F)
Arguments
Axzero |
observed event times in the control group in Study A |
Adeltazero |
event/censoring indicators in the control group in Study A |
Aszero |
surrogate marker values in the control group in Study A, NA for individuals not observable at the time the surrogate marker was measured |
Axone |
observed event times in the treatment group in Study A; optional (user must provide either (1) data from treatment arm in Study A or (2) hypothesized values for delta.ea (or R.A.given)and psi or (3) data from treatment arm in Study A and hypothesized psi (if different from observed treatment effect at t in Study A)) |
Adeltaone |
event/censoring indicators in the treatment group in Study A; optional (user must provide either (1) data from treatment arm in Study A or (2) hypothesized values for delta.ea (or R.A.given)and psi or (3) data from treatment arm in Study A and hypothesized psi (if different from observed treatment effect at t in Study A)) |
Asone |
surrogate marker values in the treatment group in Study A, NA for individuals not observable at the time the surrogate marker was measured; optional (user must provide either (1) data from treatment arm in Study A or (2) hypothesized values for delta.ea (or R.A.given) and psi or (3) data from treatment arm in Study A and hypothesized psi (if different from observed treatment effect at t in Study A)) |
delta.ea |
hypothesized value for the early treatment effect at time t0; optional (user must provide either (1) data from treatment arm in Study A or (2) hypothesized values for delta.ea (or R.A.given) and psi or (3) data from treatment arm in Study A and hypothesized psi (if different from observed treatment effect at t in Study A)), if not given then it is assumed that this quantity equals the osberved early treatment effect at time t0 in Study A |
psi |
hypothesized value for the treatment effect at time t; optional (user must provide either (1) data from treatment arm in Study A or (2) hypothesized values for delta.ea (or R.A.given) and psi or (3) data from treatment arm in Study A and hypothesized psi (if different from observed treatment effect at t in Study A)), if not given then it is assumed that this quantity equals the osberved treatment effect at time t in Study A |
R.A.given |
hypothesized value for the proportion of treatment effect on the primary outcome explained by surrogate information at t0 in Study A; optional (user must provide either (1) data from treatment arm in Study A or (2) hypothesized values for delta.ea (or R.A.given) and psi or (3) data from treatment arm in Study A and hypothesized psi (if different from observed treatment effect at t in Study A)) |
t |
time of interest |
landmark |
landmark time of interest, t0 |
extrapolate |
TRUE or FALSE; indicates whether local constant extrapolation should be used, default is TRUE |
adjustment |
TRUE or FALSE; indicates whether adjustment that is needed when survival past time t is high should be used, default is FALSE if survival past t0 is < 0.90 in both arms arm of Study A, otherwise default is true if survival past t0 is >= 0.90 in either arm of Study A |
n |
total sample size for future study (Study B); optional (user needs to provide either n or power) |
power |
desired power for testing at time t0 for future study (Study B); optional (user needs to provide either n or power) |
pi.1 |
proportion of total sample size in future study (Study B) that would be assigned to the treatment group, default is 0.5 |
pi.0 |
proportion of total sample size in future study (Study B) that would be assigned to the treatment group, default is 0.5 |
cens.rate |
censoring in the future study (Study B) is assumed to follow an exponential distribution with censoring rate equal to this specificed value |
transform |
TRUE or FALSE; indicates whether a transformation should be used, default is FALSE. |
Details
Assume information is available on a prior study, Study A, examining the effectiveness of a treatment up to some time of interest, t. The aim is to plan a future study, Study B, that would be conducted only up to time and a test for a treatment effect would occur at
. In both studies, we assume a surrogate marker is/will be measured at time
for individuals still observable at
. 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, in Study K. Let
and
denote the surrogate marker measured at time
under the treatment and the control, respectively, in Study K.
The null and alternative hypotheses of interest are:
Here, we plan to test in Study B using the test statistic
(see early.delta.test documentation). The estimated power at a type I error rate of 0.05 is thus
where , and
and is parallel to
except replacing
by
and
is the Kaplan-Meier estimator of the survival function for
for
. In addition,
assuming that the survival function of the censoring distribution is in both arms, where
and
is the Kaplan-Meier estimator of the survival function of
based on the observations from Study A, and
where is provided in the early.delta.test documentation.
This can be re-arranged to calculate the sample size needed in Study B to achieve a power of :
When the outcome rate is low (i.e., survival rate at t is high), an adjustment to the variance calculation is needed. This is automatically implemented if the survival rate at t in either arm is 0.90 or higher.
Value
n |
Total sample size needed for Study B at the given power (if power is provided by user). |
power |
Estimated power for Study B at the given sample size (if sample size is provided by user). |
Author(s)
Layla Parast
References
Parast L, Cai T, Tian L (2019). Using a Surrogate Marker for Early Testing of a Treatment Effect. Biometrics, 75(4):1253-1263.
Examples
data(dataA)
design.study(Axzero = dataA$x0, Adeltazero = dataA$delta0, Aszero = dataA$s0,
Axone = dataA$x1, Adeltaone = dataA$delta1, Asone = dataA$s1, t=1, landmark=0.5,
power = 0.80, cens.rate=0.5)
design.study(Axzero = dataA$x0, Adeltazero = dataA$delta0, Aszero = dataA$s0,
Axone = dataA$x1, Adeltaone = dataA$delta1, Asone = dataA$s1, t=1, landmark=0.5,
n=2500, cens.rate=0.5)
design.study(Axzero = dataA$x0, Adeltazero = dataA$delta0, Aszero = dataA$s0,
Axone = dataA$x1, Adeltaone = dataA$delta1, Asone = dataA$s1, t=1, landmark=0.5,
power = 0.80, cens.rate=0.5, psi = 0.05)