basesurvfun: Estimated baseline survival function

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/intcure.r

Description

Estimate the baseline survival probabilities at specified time points

Usage

1
basesurvfun(time, intcureobj)

Arguments

time

a vector of time points at which survival probabilities will be calculated.

intcureobj

an object from intcure function

Details

The estimated baseline survival function should be a continuous function and will be smooth if the basedist = "exponential" or "Weibull"

Value

a vector of the same length as time containing the survival probabilities at time

Author(s)

Yingwei Peng

See Also

intcure

Examples

1
2
3
4
data(bmtfit)
# Estimated baseline survival at 1 year
basesurvfun(1, bmtfit)
plot(function(x)basesurvfun(x, intcureobj = bmtfit), from = 0, to = 6, type = "l")

intcure documentation built on July 2, 2020, 12:25 a.m.