powered by
Estimate the baseline survival probabilities at specified time points
basesurvfun(time, intcureobj)
a vector of time points at which survival probabilities will be calculated.
an object from intcure function
intcure
a vector of the same length as time containing the survival probabilities at time
time
The estimated baseline survival function should be a continuous function and will be smooth if the basedist = "exponential" or "Weibull"
basedist = "exponential"
"Weibull"
# 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