Learn R Programming

SurrogateOutcome (version 1.1)

pred.smooth.surv: Calculates the conditional probability of survival for control group values

Description

Helper function; calculates the estimated probability of survival for control control group surrogate values using treatment group surrogate and outcome information.

Usage

pred.smooth.surv(xone.f, deltaone.f, sone.f, szero.one, myt, bw = NULL, 
weight, transform, extrapolate = T)

Arguments

xone.f

observed event times in the treatment group.

deltaone.f

censoring indicators in the treatment group.

sone.f

surrogate marker values in the treatment group.

szero.one

surrogate marker values in the control group.

myt

time of interest.

bw

bandwidth.

weight

weight used for perturbation resampling.

transform

TRUE or FALSE; indicates whether a transformation should be used, default is FALSE.

extrapolate

TRUE or FALSE; indicates whether local constant extrapolation should be used, default is TRUE.

Value

A list is returned:

Phat.ss

conditional probability of survival past t for control group

warn.flag

warning flag equal to 1 if extrapolation was used; 0 otherwise