Learn R Programming

SurrogateTest (version 1.3)

pred.smooth.surv.new: Calculates the conditional probability of survival to time t

Description

Helper function; calculates the estimated conditional probability of survival to time t given survival to the landmark time and given surrogate marker information.

Usage

pred.smooth.surv.new(Axzero.f, Adeltazero.f, Aszero.f, Bsnew.f, 
Bsnew2.f = NULL, myt, bw = NULL, weight.pred, extrapolate)

Arguments

Axzero.f

observed event times in the control group in Study A

Adeltazero.f

event/censoring indicators in the control group in Study A

Aszero.f

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

Bsnew.f

surrogate marker values in one group (either treatment or control) in Study B

Bsnew2.f

surrogate marker values in one group (either treatment or control) in Study B, optional

myt

time of interest

bw

bandwidth, optional

weight.pred

weight used for perturbation resampling

extrapolate

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

Value

conditional probability of survival past t

Details

Details are included in the documentation for early.delta.test