baseline {surtvep} | R Documentation |
calculating baseline hazard and baseline cumulative hazard using the result from a coxtv
or coxtp
object
Description
The baseline estimation is the baseline hazard at each observed failure time when holding all the covariates to be zero.
Usage
baseline(fit)
Arguments
fit |
model from |
Value
A list with three components:
time |
the unique observed failure times. |
hazard |
the baseline hazard corresponding to each unique failure time point. |
cumulHaz |
the cumulative baseline hazard corresponding to each unique failure time point. |
Examples
data(ExampleData)
z <- ExampleData$z
time <- ExampleData$time
event <- ExampleData$event
fit <- coxtv(event = event, z = z, time = time)
base.est <- baseline(fit)
[Package surtvep version 1.0.0 Index]