This function estimates the hazard ratio for time-to event data under ICH E9 (R1) to address intercurrent events. Multiple strategies except the principal stratum strategy are allowed.
surv.HR(
A,
Time,
cstatus,
strategy = "composite",
cov1 = NULL,
conf.int = 0.95,
weights = NULL,
subset = NULL
)Treatment indicator, 1 for treatment and 0 for control.
Time to event.
Indicator of event, 1 for the primary event, 2 for the intercurrent event, 0 for censoring.
Strategy to address intercurrent events, "treatment" indicating treatment policy strategy,
"composite" indicating composite variable strategy, "natural" indicating hypothetical strategy
(Scenario I, controlling the hazard of intercurrent events), "removed" indicating hypothetical strategy
(Scenario II, removing intercurrent events), and "whileon" indicating while on treatment strategy.
Baseline covariates.
Level of the confidence interval.
Weight for each subject (not applied to the while on treatment strategy).
Subset, either numerical or logical.
A list including
Estimated log hazard ratio (logHR) of the treatment effect on the primary event.
Standard error of the estimated log hazard ratio (logHR).
Confidence interval of the hazard ratio (HR).
P value of the hazard ratio.
data(bmt)
bmt = transform(bmt, d4=d2+d3)
A = as.numeric(bmt$group>1)
## composite variable strategy
fit = surv.HR(A, bmt$t2, bmt$d4, "composite")
## while on treatment strategy
X = bmt[,c('z1','z3','z5')]
fit = surv.HR(A, bmt$t2, bmt$d4, "whileon", cov1=X)