Learn R Programming

intcure (version 2.1)

basesurvfun: Estimated baseline survival function

Description

Estimate the baseline survival probabilities at specified time points

Usage

basesurvfun(time, intcureobj)

Arguments

time

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

intcureobj

an object from intcure function

Value

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

Details

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

See Also

intcure

Examples

Run this code
# NOT RUN {
data(bmtfit)
# Estimated baseline survival at 1 year
basesurvfun(1, bmtfit)
plot(function(x)basesurvfun(x, intcureobj = bmtfit), from = 0, to = 6, type = "l")

# }

Run the code above in your browser using DataLab