delta.t.RMST: Calculates the residual treatment effect (the difference in...

Description Usage Arguments Details Value Author(s) References Examples

View source: R/SurrogateOutcome.R

Description

Calculates the residual treatment effect (the difference in restricted mean survival time at time t) after accounting for the treatment effect on the primary outcome up to the landmark time

Usage

1
delta.t.RMST(xone, xzero, deltaone, deltazero, t, weight = NULL, landmark = landmark)

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.

t

time of interest for treatment effect.

weight

optional weight.

landmark

landmark time of interest, t_0.

Details

See documentation for R.t.estimate for details.

Value

delta.t

the estimated residual treatment effect after accounting for the treatment effect on the primary outcome up to the landmark time

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.

Examples

1
2
3
4
data(ExampleData)
names(ExampleData)
delta.t.RMST(xone = ExampleData$x1, xzero = ExampleData$x0, deltaone = ExampleData$delta1, 
deltazero = ExampleData$delta0, t = 5, landmark=2)

SurrogateOutcome documentation built on Nov. 15, 2021, 5:08 p.m.