delta.estimate.RMST: Helper function

Description Usage Arguments Value Author(s)

View source: R/SurrogateOutcome.R

Description

Helper function; used by delta.estimate function

Usage

1
delta.estimate.RMST(xone, xzero, deltaone, deltazero, t, weight = NULL, delta.only = F)

Arguments

xone

numeric vector, observed event times for the primary outcome in the treatment group.

xzero

numeric vector, observed event times for the primary outcome in the control group.

deltaone

numeric vector, event/censoring indicators for the primary outcome in the treatment group.

deltazero

numeric vector, event/censoring indicators for the primary outcome in the control group.

t

time of interest for treatment effect.

weight

weight; optional

delta.only

TRUE or FALSE; if TRUE then only delta is returned, if FALSE then delta and restricted mean survival time for each treatment group is also returned

Value

A list is returned:

delta

the difference in the restricted mean survival between the two treatment groups.

s1

only if delta.only = F; the restricted mean survival in group 1.

s0

only if delta.only = F; the restricted mean survival in group 0.

Author(s)

Layla Parast


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