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

Description Usage Arguments Value Author(s)

View source: R/SurrogateOutcome.R

Description

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

Usage

1
2
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

Author(s)

Layla Parast


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