Main estimation function

pte.survival(xob, s.ob, deltaob, aob, t, t.0, varind = 0, re = 100)

Arguments

xob

observed survival time

s.ob

surrogate information at time t.0

deltaob

event indicator

aob

treatment indicator

t

time at which the primary outcome is measured

t.0

time at which the surrogate is measured

varind

whether to estimate variance (yes=0, no=1)

re

number of replications for resampling

Value

estimated PTE, g1, and g2(s) at equally spaced s point