delta.ea.single: Calculates the early treatment effect estimate in Study A

Description Usage Arguments Details Value Author(s) Examples

View source: R/Functions_SurrogateTest.R

Description

Calculates the early treatment effect estimate in Study B, generally not called directly by the user

Usage

1
2
3
delta.ea.single(Axzero, Adeltazero, Aszero, Bxzero, Bdeltazero, 
Bszero, Bxone, Bdeltaone, Bsone, t, landmark, weightA = NULL, 
weightB = NULL, weight.both = NULL, extrapolate)

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

Bxzero

observed event times in the control group in Study A

Bdeltazero

event/censoring indicators in the control group in Study A

Bszero

surrogate marker values in the control group in Study A, NA for individuals not observable at the time the surrogate marker was measured

Bxone

observed event times in the treatment group in Study A

Bdeltaone

event/censoring indicators in the treatment group in Study A

Bsone

surrogate marker values in the treatment group in Study A, NA for individuals not observable at the time the surrogate marker was measured

t

time of interest

landmark

landmark time of interest, t0

weightA

Study A weights used for perturbation resampling

weightB

Study A weights used for perturbation resampling

weight.both

Study A (replicated) weights used for perturbation resampling

extrapolate

TRUE or FALSE; indicates whether local constant extrapolation should be used

Details

Details are included in the documentation for design.study and recover.B

Value

early treatment effect estimate

Author(s)

Layla Parast

Examples

1
2
3
4
5
6
data(dataA)

delta.ea.single(Axzero = dataA$x0, Adeltazero = dataA$delta0, 
Aszero = dataA$s0, Bxzero = dataA$x0, Bdeltazero = dataA$delta0, 
Bszero = dataA$s0, Bxone = dataA$x1, Bdeltaone = dataA$delta1, 
Bsone = dataA$s1, t=1, landmark=0.5,  extrapolate = TRUE)

SurrogateTest documentation built on Nov. 16, 2021, 9:10 a.m.